From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14843 invoked by uid 1002); 31 Dec 2002 05:47:34 -0000 Mailing-List: contact gentoo-dev-help@gentoo.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@gentoo.org Received: (qmail 12377 invoked from network); 31 Dec 2002 05:47:34 -0000 From: "C. Linus Hicks" To: gentoo-dev@gentoo.org Content-Type: text/plain Organization: Message-Id: <1041313560.20353.29.camel@LH2.nc.rr.com> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.0 Date: 31 Dec 2002 00:46:00 -0500 Content-Transfer-Encoding: 7bit Subject: [gentoo-dev] Why don't they use -o in system scripts? X-Archives-Salt: 6fc29788-7708-4dca-bb7f-96c7dace7726 X-Archives-Hash: 825d9a8c54592b16d58094182f2e8c55 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 -- gentoo-dev@gentoo.org mailing list