Re: Bash reference manual errata

2020-07-10 Thread Ángel
On 2020-07-10 at 09:06 -0400, Chet Ramey wrote: > On 7/10/20 4:24 AM, 홍홍 wrote: > > In Bourne shell > > builtin(https://www.gnu.org/software/bash/manual/bash.html#Bourne-Shell-Builtins > > > > ), > > shift command > > >

Bash-5.0 Official Patch 18

2020-07-10 Thread Chet Ramey
BASH PATCH REPORT = Bash-Release: 5.0 Patch-ID: bash50-018 Bug-Reported-by:oguzismailuy...@gmail.com Bug-Reference-ID: Bug-Reference-URL: https://lists.gnu.org/archive/html/bug-bash/2019-10/msg00098.ht

Re: Return from function depending on number of parameters

2020-07-10 Thread Greg Wooledge
On Fri, Jul 10, 2020 at 10:14:38AM +0100, Chris Elvidge wrote: > export PS1='\[${fcol[d]}${ecol[!!$?]}\][$?] \[${ucol[!!$(id > -u)]}\]\h\[${fcol[b]}\]!\[${ucol[!!$(id -u)]}\]\u\[${fcol[w]}\]:(`tty|cut > -d/ -f3-`):\D{%a %d %b %Y %I:%M %P %Z}:`pwd`\n\$\[${fcol[n]}\] ' > > I somehow thought that [..

Re: Return from function depending on number of parameters

2020-07-10 Thread Chet Ramey
On 7/10/20 5:14 AM, Chris Elvidge wrote: > Are the two uses (array subscript and arithmetic context) of [...] > connected/related? Or am I (stupidly) seeing a connection where none really > exists? No doubt they resemble each other, since the bounding characters are the same and the contents are

Re: Bash reference manual errata

2020-07-10 Thread Chet Ramey
On 7/10/20 4:24 AM, 홍홍 wrote: > In Bourne shell > builtin(https://www.gnu.org/software/bash/manual/bash.html#Bourne-Shell-Builtins > ), > shift command > > > "Parameters represented by the numbers $# to $#-n+1 are unset.

Re: Issue with Bash

2020-07-10 Thread CHIGOT, CLEMENT
Hi Rishita, Thanks for the try. But as Chet said it was unlikely to be related to these patches. We'll have to understand what is causing this loop. Did you confirm that the signal delivered is SIGTTOU ? Thanks, Clément From: Rishita Saha16 Sent: Friday, Jul

RE: Issue with Bash

2020-07-10 Thread Rishita Saha16
Hi Clement, We have given it a try after applying the patches that you are referring to. We are still seeing the core dump. Regards, Rishita - Original message - From: "CHIGOT, CLEMENT" To: Rishita Saha16 , "bug-bash@gnu.org" Cc: Subject: [E

Re: Return from function depending on number of parameters

2020-07-10 Thread Chris Elvidge
On 05/07/2020 06:24 pm, Chet Ramey wrote: On 7/4/20 12:23 PM, Lawrence Velázquez wrote: Quoting Chet liberally from https://lists.gnu.org/archive/html/bug-bash/2012-04/msg00034.html: It dates from Posix circa 1990 (1003.2d9, of which I've lost my paper copy). I implemented it after the Ber

Bash reference manual errata

2020-07-10 Thread 홍홍
In Bourne shell builtin(https://www.gnu.org/software/bash/manual/bash.html#Bourne-Shell-Builtins ), shift command "Parameters represented by the numbers $# to $#-n+1 are unset." should be "Parameters represented by the