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

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

 



On Sun, 17 Feb 2008 20:23:13 +0200
Ville Skyttä <ville.skytta@xxxxxx> wrote:

> 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.
> 

just to make it clear; I'm by far not a bash expert .. I'm happy to just point out
the problem and let someone who actually knows bash, code the perfect solution :)



-- 
If you want to reach me at my work email, use arjan@xxxxxxxxxxxxxxx
For development, discussion and tips for power savings, 
visit http://www.lesswatts.org

-- 
fedora-devel-list mailing list
fedora-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-devel-list

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux