autoconf-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: install-sh posix compliance


From: Alexandre Duret-Lutz
Subject: Re: install-sh posix compliance
Date: Thu, 27 Jun 2002 10:09:22 +0200
User-agent: Gnus/5.090007 (Oort Gnus v0.07) Emacs/21.2 (i386-debian-linux-gnu)

>>> "Paul" == Paul Eggert <address@hidden> writes:

 >> From: Alexandre Duret-Lutz <address@hidden>
 >> Date: Wed, 26 Jun 2002 18:44:45 +0200

 Clint> if [ -f $src -o -d $src ]
 Clint> This is not strictly POSIX-conformant.  
 >> 
 >> Damn!  Are they removing things between revisions?

 Paul> No, this conformance issue has been in the standard for a decade.  The
 Paul> problem is that different versions of the "test" command assign
 Paul> different priorities to the -o and -a operators, so they're not
 Paul> portable (and POSIX does not standardize them).  This issue is covered
 Paul> in the Autoconf manual.

I don't get it.  The issue that you and the Autoconf manual
describe is that `-a' and `-o' cannot be used *together*.

What Clint suggests (and your patch does) is to never use `-a'
or `-o' *alone*; this makes quite a difference to me.  It would
be worth to document this if this really is a portability issue.

[...]

-- 
Alexandre Duret-Lutz




reply via email to

[Prev in Thread] Current Thread [Next in Thread]