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

Behdad Esfahbod behdad at behdad.org
Sun Feb 17 23:40:30 UTC 2008


> On Sun, 17 Feb 2008 08:15:20 -0800, Arjan van de Ven wrote
> 
> > > This should really be fixed in bash to short-circuit.
> > 
> > well......... not sure it can be done in the bash language.
> > (it may well guarantee that both get executed)

There's nothing to execute there.  All the expansions happen first, so
if you have things like [ -n "$something" -a "`id`" = 0 ], the `id` call
is made before passing control to "test".  The short-circuit would just
happen in the evaluation in test.  There's no user-visible difference
there.

-- 
behdad
http://behdad.org/

"Those who would give up Essential Liberty to purchase a little
 Temporary Safety, deserve neither Liberty nor Safety."
        -- Benjamin Franklin, 1759




More information about the fedora-devel-list mailing list