Re: Bug Reporting

2015-06-09 Thread Pierre Gaston
On Tue, Jun 9, 2015 at 11:16 AM, Avinash Thapa wrote: > Hi, I'll report the bug via email only. > > In this, you are able to get the /etc/passwd file inside an error, this > thing looks weird to me so I thought to report you this thing. > > Just write in your terminal > bash -i '/etc/passwd'

Re: Bug Reporting

2015-06-09 Thread Charles Daffern
On 09/06/15 09:27, Pierre Gaston wrote: > Well it tries to execute the file and show the lines where it gets an > error, it's a useful behavior when you try to write a script. > > If you have read access to these files and can run bash, you can print > them anyway eg: > > bash -c 'echo "$( > so it

Re: Finding the last foreground command in the current session

2015-06-09 Thread Debarshi Ray
Hey Stephane, On Fri, May 22, 2015 at 02:38:31PM +0100, Stephane Chazelas wrote: > Can you not just do a tcgetpgrp() periodically If by "periodically" you mean "polling", then no, I don't want to do that. I know a few terminal emulators do that, but it is bad for power consumption and battery li

Memory leak in bash 4.3

2015-06-09 Thread Jean Delvare
Hi all, I have a bash script that runs as a daemon so it never exits, and its memory consumption when run under bash 4.3.x (as reported as RSS by ps) keeps increasing over time, apparently without any bound (starts at 3 MB and I've seen it reach 40 MB and still growing.) The memory consumption of

Re: Memory leak in bash 4.3

2015-06-09 Thread Jean Delvare
On Tue, 9 Jun 2015 18:02:31 +0200, Jean Delvare wrote: > I built bash 4.3.39 with --without-bash-malloc and then ran the daemon > under valgrind for 1 minute. The back trace for the leak is: > > 3,973 bytes in 430 blocks are definitely lost in loss record 1,610 of 1,613 >at 0x4C277AB: malloc (

Re: Change in behaviour between 4.2.53 and 4.3 series

2015-06-09 Thread Chet Ramey
On 6/4/15 1:25 AM, Dmitry Mikhin wrote: > Hello everyone. > > Lately we experienced some strange termination issues in our system. The > problem was traced down to bash "wait" not waiting for process groups. > > The original implementation has been done under bash 4.2 series, and > apparently wor

Re: Bug in bash 4.3.30 with --disable-job-control

2015-06-09 Thread Chet Ramey
On 6/2/15 1:07 PM, Roy Keene wrote: > All, > > There is a bug of some sort in bash 4.3.30 (and likely others) when > compiled with --disable-job-control on Linux/x86_64. I will have to look at this on a Linux system when I get access to one. It doesn't misbehave when I run it on Mac OS X. Ch

Re: EXIT trap in implicit vs. explicit pipeline subshell

2015-06-09 Thread Chet Ramey
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 6/7/15 12:55 PM, Miroslav Koskar wrote: > Bash Version: 4.3 > Patch Level: 39 > Release Status: release > > Description: > > For lack of better terminology I call subshell introduced by pipeline > as implicit when written like this: > >