Re: Assigment to GROUPS doesn't return an error code

2015-08-11 Thread Chet Ramey
On 8/11/15 5:07 AM, Grzegorz Bajson wrote: > Bash Version: 4.3.30 > Patch Level: 2 > Release Status: release > > Description: > Hi, > According to man page assigment to GROUPS should return error status, > this is not a case: > > "GROUPS An array variable containing the list of g

Re: -e does not take effects in subshell

2015-08-11 Thread Greg Wooledge
On Tue, Aug 11, 2015 at 11:42:29AM +, PRC wrote: > mybuild() > { > ( > set -e > make > echo "build okay" > ) > } > > mybuild && do_other_stuff http://mywiki.wooledge.org/BashFAQ/105 Since mybuild is invoked as part of a compound command, set -e is suppressed.

Assigment to GROUPS doesn't return an error code

2015-08-11 Thread Grzegorz Bajson
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-redhat-linux-gnu' -DCONF_VENDOR='redhat' -DLOCALEDIR='/usr/share/locale' -

Assigment to GROUPS doesn't return an error code

2015-08-11 Thread gbajson
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-redhat-linux-gnu' -DCONF_VENDOR='redhat' -DLOCALEDIR='/usr/share/locale'

-e does not take effects in subshell

2015-08-11 Thread PRC
I have a export function looking like: mybuild() { ( set -e make echo "build okay" ) } I wish to use this function this way: mybuild && do_other_stuff But whatever (success or failure) make returns "build okay" is always printed and do_other_stuff always gets ex

Re: Worth mentioning in documentation

2015-08-11 Thread Juanma
El Mon 10 of Aug, Bob Proulx profirió estas palabras: > [...] This is why quoting as if they were external programs is > required. On the other hand [[ has always been a builtin and > therefore the shell can avoid one layer of quoting and does. That's a good point to make. Thanks for clarifying.