Bug 217055 - Consolidate random sleeps in periodic scripts
Dag-Erling Smørgrav
des at des.no
Thu Feb 16 09:03:15 UTC 2017
Cy Schubert <Cy.Schubert at komquats.com> writes:
> "Dag-Erling Smørgrav" <des at des.no> writes:
> > This won't work, because && forks. You need:
> >
> > if [ -t 0 ] ; then ... ; fi
> Are you sure?
Maybe it varies from shell to shell... or maybe I confused it with
other constructs like 'grep foo bar | while read line' (which definitely
doesn't work). I consider it bad style, but that's a matter of taste.
I prefer to use && and || only for error conditions and loop control.
DES
--
Dag-Erling Smørgrav - des at des.no
More information about the freebsd-pkg
mailing list