[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Feature request - ganged file test switches
From: |
Andreas Schwab |
Subject: |
Re: Feature request - ganged file test switches |
Date: |
Sat, 09 Aug 2014 17:16:08 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3.92 (gnu/linux) |
Steve Simmons <scs@umich.edu> 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 . . .
>
> but
>
> if [[ -drx foo ]] ; then . . .
>
> is a lot easier.
But it is ambigous. Does it mean adjuntion or conjunction?
Andreas.
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."