bug-autoconf
[Top][All Lists]
Advanced

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

Re: Bug in latest install-sh


From: Kean Johnston
Subject: Re: Bug in latest install-sh
Date: Mon, 31 Oct 2005 23:53:23 -0800
User-agent: Mozilla Thunderbird 1.0.7 (Windows/20050923)

Stepan Kasal wrote:
Hello,
  thank you for your bug report.

On Mon, Oct 31, 2005 at 04:21:31PM -0800, Kean Johnston wrote:

There is a bug in teh latest install-sh that is in m4 1.4.4.


This is the latest install-sh in the Automake CVS.
So this bug report belongs to bug-automake, where I'm forwarding it.
Ah ok thank you.

I looked at POSIX, and 'trap - 0' is standardized, while 'trap 0' is not.
Ok thats a fair comment. But then if you want to use POSIX
shell scripts shouldn't you ensure you are running in a
POSIX shell? On most SYstem V machines I know, /bin/sh is
a "pure" Bourne shell, and very unlikely to be POSIX
compliant. Thats what ksh is for. But the script uses
#! /bin/sh so on anything other than a fairly modern system,
that is very unlikely to get you a POSIX compliant shell.

The Autoconf manual doesn't mention this protability problem; would you
be so kind to provide details about your setup (which OS, which shell, and
its versions)?  I'd like to add the info to the manual.  (Ccing to
bug-autoconf, too.)
Certainly. SCO OpenServer 5, SCO OpenServer 6, SCO UnixWare 2,
SCO UnixWare 7. But I took a look around ...
http://docs.sun.com/app/docs/doc/816-5165/6mbb0m9sa?a=view#indexterm-694
(Solaris 10 man page for sh) doesn't support trap - either, but
it does support the null string as an argument. Same with HPUX 11
(http://docs.hp.com/en/B2355-90680/sh-bourne.1.html).

If "trap - 0" doesn't work on your system, would "trap '' 0" work?
Or perhaps "trap : 0"?
Both do, but trap '' 0 seems to be the most portable.

Have a nice day,
Dekuji! A ty.

Kean




reply via email to

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