Re: cvs: php-src(PHP_5_1) /ext/iconv config.m4

From: Date: Thu, 13 Oct 2005 20:48:29 +0000
Subject: Re: cvs: php-src(PHP_5_1) /ext/iconv config.m4
References: 1 2  Groups: php.cvs 
Request: Send a blank email to php-cvs+get-34588@lists.php.net to get a copy of this message
On Thu, 13 Oct 2005, Antony Dovgal wrote:
On 13.10.2005 23:28, Jani Taskinen wrote:
-      for i in /usr /usr/local; do
-        if test -f "$i/include/iconv.h" -o test -f "$i/include/giconv.h"; then
+      for i in /usr/local /usr; do
+        if test -f "$i/include/iconv.h" || test -f "$i/include/giconv.h"; then
Just curious: what's the problem with -o ? There are a lot of -o all over the sources: find . -name "config.m4" | xargs grep -nH "\-o" | wc -l 51
    Someone claimed -o is not supported in all 'test' implementations.
    Using || is a bit clearer too and definately supported.
    --Jani


« previous php.cvs (#34588) next »