Path: csiph.com!goblin1!goblin.stu.neva.ru!usenet.stanford.edu!not-for-mail From: "Eric S. Raymond" Newsgroups: gnu.bash.bug Subject: Request For Enhancement - TID variable Date: Thu, 26 Dec 2019 10:37:51 -0500 (EST) Lines: 19 Approved: bug-bash@gnu.org Message-ID: References: <20191226153751.587634704BBB@snark.thyrsus.com> NNTP-Posting-Host: lists.gnu.org X-Trace: usenet.stanford.edu 1577376287 2120 209.51.188.17 (26 Dec 2019 16:04:47 GMT) X-Complaints-To: action@cs.stanford.edu To: bug-bash@gnu.org Envelope-to: bug-bash@gnu.org X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 71.162.243.5 X-Mailman-Approved-At: Thu, 26 Dec 2019 11:04:45 -0500 X-BeenThere: bug-bash@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Bug reports for the GNU Bourne Again SHell List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Mailman-Original-Message-ID: <20191226153751.587634704BBB@snark.thyrsus.com> Xref: csiph.com gnu.bash.bug:15782 In attempting to use GNU parallel, with some bash scripts, I discovered I had a problem with tempfile collisions due to all of the thread having the same PID. I was able to come up with a workaround, but... RFE: bash should have a TID varuable that returns the vakue of gettid(2). If the bash devs are too busy for this like the idea, I could write the patch. -- Eric S. Raymond During waves of terror attacks, Israel's national police chief will call on all concealed-handgun permit holders to make sure they carry firearms at all times, and Israelis have many examples where concealed permit holders have saved lives. -- John R. Lott