bug-bash
[Top][All Lists]
Advanced

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

Re: simple bug/compat question


From: Linda Walsh
Subject: Re: simple bug/compat question
Date: Wed, 21 Jan 2009 03:48:23 -0800
User-agent: Thunderbird 2.0.0.19 (Windows/20081209)


It's not a bug.
---
        It's a feature... ;-)


  test/[ uses -a and -o for `and' and `or'; the
conditional command uses && and || for that purpose.  This is
they way it's documented.
---
Would it be inappropriate if "[[" were to treat "-a" && "-o" identically
to "&&" -a "||" so "[[" could be more of a drop-in replacement for "/bin/[" ?

I can understand /bin/test not parsing "&&" and "||" as they'd have to be
specially quoted anyway, but don't see any harm in the built-in "[["
being 'slightly' more compatible with it's non-builtin.








reply via email to

[Prev in Thread] Current Thread [Next in Thread]