Gentoo Archives: gentoo-dev

From: "C. Linus Hicks" <lhicks@×××××.com>
To: gentoo-dev@g.o
Subject: [gentoo-dev] Why don't they use -o in system scripts?
Date: Tue, 31 Dec 2002 05:47:34
Message-Id: 1041313560.20353.29.camel@LH2.nc.rr.com
1 I'm confused about why they use [ expression1 ] || [ expression2 ]
2 rather than [ expression1 -o expression2 ] in system scripts like
3 /etc/profile. It doesn't do the same thing, and I suppose the results
4 are usually the same. However, my read of the script is that what they
5 really want is a logical OR which is what the -o gives you.
6
7 --
8 C. Linus Hicks <lhicks@×××××.com>
9
10
11 --
12 gentoo-dev@g.o mailing list

Replies

Subject Author
Re: [gentoo-dev] Why don't they use -o in system scripts? Martin Schlemmer <azarah@g.o>