public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] Why don't they use -o in system scripts?
@ 2002-12-31  5:46 C. Linus Hicks
  2003-01-03  9:59 ` Martin Schlemmer
  0 siblings, 1 reply; 3+ messages in thread
From: C. Linus Hicks @ 2002-12-31  5:46 UTC (permalink / raw
  To: gentoo-dev

I'm confused about why they use [ expression1 ] || [ expression2 ]
rather than [ expression1 -o expression2 ] in system scripts like
/etc/profile. It doesn't do the same thing, and I suppose the results
are usually the same. However, my read of the script is that what they
really want is a logical OR which is what the -o gives you.

-- 
C. Linus Hicks <lhicks@nc.rr.com>


--
gentoo-dev@gentoo.org mailing list


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-01-05 21:29 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-12-31  5:46 [gentoo-dev] Why don't they use -o in system scripts? C. Linus Hicks
2003-01-03  9:59 ` Martin Schlemmer
2003-01-05 21:26   ` Phil Richards

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox