This is the mail archive of the
automake@gnu.org
mailing list for the automake project.
Re: install-sh posix compliance
>>> "Paul" == Paul Eggert <eggert@twinsun.com> writes:
>> From: Alexandre Duret-Lutz <duret_g@lrde.epita.fr>
>> 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