Re: test incorrectly rejecting valid expression with confusing ! placement

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Harald van Dijk <harald@xxxxxxxxxxx> wrote:
> Hi,
> 
> Now that Herbert fixed the reported crash in test (in a far simpler
> manner than I had suggested, which I like), I did some more testing, and
> came across one case that does not currently work, and did not work in
> the past, but is perfectly valid:
> 
> $ src/dash -c 'test ! ! = !'
> src/dash: 1: test: =: unexpected operator

Agreed.
 
> $ src/dash -c 'test ! -o !'
> src/dash: 1: test: -o: unexpected operator

Nope, the rule is quite clear that it only applies to binary
primaries, not operators.  -o is an operator.

Cheers,
-- 
Email: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
--
To unsubscribe from this list: send the line "unsubscribe dash" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux