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 ]] ;
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
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
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
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