Gentoo Archives: gentoo-dev

From: George Shapovalov <george@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] Re: RFC: sh versionator.eclass
Date: Tue, 02 Oct 2007 16:42:25
Message-Id: 200710021830.26584.george@gentoo.org
In Reply to: Re: [gentoo-dev] Re: RFC: sh versionator.eclass by Roy Marples
1 Tuesday, 2. October 2007, Roy Marples Ви написали:
2 > And here it is
3 - if [[ "${FORTRANC}" = "gfortran" ]]; then
4 + if [ "${FORTRANC}" = "gfortran" ]; then
5
6 You know, it is funny to see these lines after all those cries about how [ is
7 evil and we should really never ever use it but rather always use [[ form :).
8
9 Oh, btw, does the compliant sh correctly process the most cited composition? :
10 [ -n $foo ] && [ -z $foo ] && echo "huh?"
11 (straight from devmanual, the primary reason why [ is considered bad)
12
13 George
14 --
15 gentoo-dev@g.o mailing list

Replies

Subject Author
Re: [gentoo-dev] Re: RFC: sh versionator.eclass Roy Marples <uberlord@g.o>
Re: [gentoo-dev] Re: RFC: sh versionator.eclass Mike Frysinger <vapier@g.o>