Feature request - ganged file test switches

2014-08-09 Thread Steve Simmons
Advance apologies if this has already been discussed and rejected. It would be nice to have ganged file test switches. As an example, to test that a directory exists and is properly accessible one could do if [[ -d foo ]] && [[ -r foo ]] && [[ -x foo ]] ; then . . . but if [[ -drx foo ]] ;

Re: Feature request - ganged file test switches

2014-08-09 Thread Andreas Schwab
Steve Simmons writes: > Advance apologies if this has already been discussed and rejected. > > It would be nice to have ganged file test switches. As an example, to test > that a directory exists and is properly accessible one could do > > if [[ -d foo ]] && [[ -r foo ]] && [[ -x foo ]] ; then

'declare' does not honor '-e' in command substituted assignments - a bug ?

2014-08-09 Thread Jason Vas Dias
Good day bash list - I don't understand why this emits any output : $ ( set -e; declare v=$(false); echo 'Should not get here'; ) Should not get here $ While this does not: $ ( set -e; v=$(false); echo 'Should not get here'; ) $ Shouldn't declare / typeset behave like the normal variab

Re: Feature request - ganged file test switches

2014-08-09 Thread Steve Simmons
On Aug 9, 2014, at 11:16 AM, Andreas Schwab wrote: > Steve Simmons writes: > >> Advance apologies if this has already been discussed and rejected. >> >> It would be nice to have ganged file test switches. As an example, to test >> that a directory exists and is properly accessible one could d

Re: 'declare' does not honor '-e' in command substituted assignments - a bug ?

2014-08-09 Thread Dan Douglas
On Saturday, August 09, 2014 04:34:11 PM Jason Vas Dias wrote: > Good day bash list - > > I don't understand why this emits any output : > $ ( set -e; declare v=$(false); echo 'Should not get here'; ) > Should not get here > $ > > While this does not: > $ ( set -e; v=$(false); echo 'Shou