Don't show help of `readonly' and `readarray' when I run `help read'

2011-02-10 Thread Clark J. Wang
help: help [-dms] [pattern ...] >From my understanding the *pattern* here must be a glob-style pattern (wildcard) so `readonly' does not match the pattern `read'. -- Clark

Re: Don't show help of `readonly' and `readarray' when I run `help read'

2011-02-10 Thread Chet Ramey
On 2/10/11 4:03 AM, Clark J. Wang wrote: > help: help [-dms] [pattern ...] > > From my understanding the *pattern* here must be a glob-style pattern > (wildcard) so `readonly' does not match the pattern `read'. The pattern is composed of the same characters as a glob pattern, but it's treated mor

Re: Don't show help of `readonly' and `readarray' when I run `help read'

2011-02-10 Thread Maarten Billemont
On 10 Feb 2011, at 15:21, Chet Ramey wrote: > > On 2/10/11 4:03 AM, Clark J. Wang wrote: >> help: help [-dms] [pattern ...] >> >> From my understanding the *pattern* here must be a glob-style pattern >> (wildcard) so `readonly' does not match the pattern `read'. > > The pattern is composed of th

Re: Don't show help of `readonly' and `readarray' when I run `help read'

2011-02-10 Thread Chris F.A. Johnson
On Thu, 10 Feb 2011, Maarten Billemont wrote: On 10 Feb 2011, at 15:21, Chet Ramey wrote: On 2/10/11 4:03 AM, Clark J. Wang wrote: help: help [-dms] [pattern ...] From my understanding the *pattern* here must be a glob-style pattern (wildcard) so `readonly' does not match the pattern `read'.

Re: Bash not reacting to Ctrl-C

2011-02-10 Thread Michael Witten
On Wed, Feb 9, 2011 at 08:53, Ingo Molnar wrote: > > * Michael Witten wrote: > >> On Mon, Feb 7, 2011 at 07:08, Oleg Nesterov wrote: >> > Now that it is clear what happens, the test-case becomes even more >> > trivial: >> > >> >        bash-4.1$ ./bash -c 'while true; do /bin/true; done' >> >  

Re: [BUG] Bash not reacting to Ctrl-C

2011-02-10 Thread Linus Torvalds
On Wed, Feb 9, 2011 at 1:18 PM, Bob Proulx wrote: > > Since the exit status of /bin/true is ignored then I think that test > case is flawed.  I think at the least needs to check the exit status > of the /bin/true process. > >  bash -c 'while true; do /bin/true || exit 1; done' The "|| exit 1" doe

set -e, braces and compound commands

2011-02-10 Thread Daniel Villeneuve
I'm using GNU bash, version 4.1.2(1)-release (i386-redhat-linux-gnu). Following the change of semantics of "set -e" in bash 4,"man bash" seems to imply that the following script should exit after the for command (from the text "or one of the commands executed as part of a command list enclosed