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

Re: 3 simple steps to make booting/shutdown faster...



On Sunday 17 February 2008, Adam Goode wrote:

> From bash info page:
>
>     `EXPRESSION1 || EXPRESSION2'
>           True if either EXPRESSION1 or EXPRESSION2 is true.
>      The `&&' and `||' operators do not evaluate EXPRESSION2 if the
>      value of EXPRESSION1 is sufficient to determine the return value
>      of the entire conditional expression.
>
> So, replace "-o" with "||" ? (And "[" with "[[" and "]" with "]]" ?)

I think that would sacrifice some portability, but of course that's no issue 
for scripts that already require bash.  "[ -e FOO ] || [ -e BAR ]" should be 
more portable.


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