Re: extglob pattern matching does not work as in bash 2

2009-01-09 Thread Chet Ramey
o...@sernet.de wrote: Description: After updating to a new distribution with bash version 3.x entglob does not work like in bash version 2.x. Thanks for the report. This problem is specific to pattern substitution and patterns that begin with `*('. It will be fixed in

Re: ZSH like command line completion

2009-01-09 Thread Chet Ramey
Mithu2 wrote: Hi, I know in Bash the file completion can be set to provide a menu-list of possible files. This seems to be the default behaviour. On the other hand, I could add: bind 'TAB:menu-complete' to my .bashrc which allows cycling through the list of completions. But these

Re: ${parameter+word} not documented in bash.info or bash(1)

2009-01-09 Thread Martin Schwenke
Paul == Paul Jarc p...@po.cwru.edu writes: Paul Martin Schwenke mar...@meltin.net wrote: Neither bash.info or bash(1) documents parameter expansion of the form: ${parameter+word} Paul It's documented, but it's easy to miss. Just before the Paul list of

Re: ${parameter+word} not documented in bash.info or bash(1)

2009-01-09 Thread Bob Proulx
Martin Schwenke wrote: Paul Jarc writes: It's documented, but it's easy to miss. Just before the list of parameter expansion forms is this paragraph: In each of the cases below, word is subject to tilde expansion, parameter expansion, command substitution, and

wrong lineno inside trap?

2009-01-09 Thread peter360
I wrote a test program test.sh: trap ' echo this is line 3, but LINENO=$LINENO ' 0 echo this is line 7, and LINENO=$LINENO --- when I ran it I got $ sh /tmp/test.sh this is line 7, and LINENO=7 this is line 3, but

Re: wrong lineno inside trap?

2009-01-09 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to peter360 on 1/9/2009 6:07 PM: trap ' echo this is line 3, but LINENO=$LINENO ' 0 echo this is line 7, and LINENO=$LINENO Is this a known problem? Thanks. In general, LINENO handling is inconsistent among shells. The