Re: bash randomly logs out on VT / serial console

2017-01-02 Thread Russell King
On Mon, Jan 02, 2017 at 02:06:01PM -0500, Chet Ramey wrote: > On 1/2/17 6:09 AM, Russell King wrote: > > On Sun, Jan 01, 2017 at 09:14:45PM -0500, Chet Ramey wrote: > >> On 1/1/17 4:01 PM, r...@armlinux.org.uk wrote: > >>> Bash Version: 4.3 > >>> Patch Level: 30 > >>> Release Status: release > >>>

Re: bash randomly logs out on VT / serial console

2017-01-02 Thread Chet Ramey
On 1/2/17 6:09 AM, Russell King wrote: > On Sun, Jan 01, 2017 at 09:14:45PM -0500, Chet Ramey wrote: >> On 1/1/17 4:01 PM, r...@armlinux.org.uk wrote: >>> Bash Version: 4.3 >>> Patch Level: 30 >>> Release Status: release >>> >>> Description: >>> Running: >>> while :; do s=$(sleep .0

Re: [Help-bash] Bash Trap: How to Get Line Number of a Subprocess with Non-Zero Status

2017-01-02 Thread Chet Ramey
On 1/2/17 4:59 AM, Steve Amerige wrote: > From an end-user's perspective, it is unexpected that the LINENO has the > value of the > beginning of the function instead of the line at which the ERR was caught > by trap. Sure, it's missing functionality. Eduardo's patch was pretty much spot-on. It w

Re: [Help-bash] Bash Trap: How to Get Line Number of a Subprocess with Non-Zero Status

2017-01-02 Thread Steve Amerige
On 12/30/2016 12:50 PM, Chet Ramey wrote: It's the difference between a simple command, which has a line number, and a subshell command, which does not. The subshell command's line number is derived from the execution context, which is relative to the start of

Re: bash randomly logs out on VT / serial console

2017-01-02 Thread Russell King
On Sun, Jan 01, 2017 at 09:14:45PM -0500, Chet Ramey wrote: > On 1/1/17 4:01 PM, r...@armlinux.org.uk wrote: > > Bash Version: 4.3 > > Patch Level: 30 > > Release Status: release > > > > Description: > > Running: > > while :; do s=$(sleep .005 | cat); echo $s; done | uniq > > i