Bash Segmentation fault within lastpipe mode

2014-06-19 Thread scorp . dev . null
Configuration Information [Automatically generated, do not change]: Machine: x86_64 OS: linux-gnu Compiler: gcc Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='x86_64' -DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='x86_64-pc-linux-gnu' -DCONF_VENDOR='pc' -DLOCALEDIR='/usr/share/locale' -DPACKA

Re: Bash Segmentation fault within lastpipe mode

2014-06-19 Thread Chet Ramey
On 6/19/14, 4:43 AM, scorp.dev.n...@gmail.com wrote: > Bash Version: 4.2 > Patch Level: 45 > Release Status: release > > Description: > > in case use overwrite variables within "while loop" in lastpipe mode i get > "Segmentation fault" Thanks for the report. The lastpipe code needs to be mor

Re: dotgob+extglob bug

2014-06-19 Thread Chet Ramey
On 6/9/14, 3:42 PM, Ian Kelling wrote: > > Running this script with your own bash path demonstrates the bug. > > #!/home/ian/opt/bash/bash --norc > shopt -s extglob > shopt -s dotglob > cd $(mktemp -d) > mkdir a > touch a/.b > touch a/c > echo a/!(.b) > > output: > a/. a/.. a/c > > this happens

Re: Possible bug when combining Bash's process substitution with HERE-document?

2014-06-19 Thread Tim Friske
Hi, first I want to thank you for your help. While searching for an alternative I came up with the following code which does not work when I have the "shopt -os errexit" command line at the top of my script: read -d '' -r foobar <: > On 6/18/14, 4:27 PM, Dan Douglas wrote: >> On Wed, Jun 18, 201

Re: dot gob+extglob bug

2014-06-19 Thread Ian Kelling
Chet Ramey writes: > On 6/9/14, 3:42 PM, Ian Kelling wrote: > Yes, it's an interesting question: what exactly does pattern negation > include? You can match all filenames beginning with a `.' by using `.' > as the first character of the pattern, so should a negated pattern > beginning with a `.'

Re: Possible bug when combining Bash's process substitution with HERE-document?

2014-06-19 Thread Dennis Williamson
On Jun 19, 2014 5:00 PM, "Tim Friske" wrote: > > Hi, > > first I want to thank you for your help. > > While searching for an alternative I came up with the following code > which does not work when I have the "shopt -os errexit" command line > at the top of my script: > > read -d '' -r foobar < bl