[Top][All Lists]

[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:
  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 ...
(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

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.


reply via email to

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