automake
[Top][All Lists]
Advanced

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

`missing' needs patch for Ultrix4.4


From: Jim Meyering
Subject: `missing' needs patch for Ultrix4.4
Date: 17 Mar 2001 23:50:15 +0100
User-agent: Gnus/5.090001 (Oort Gnus v0.01) Emacs/21.0.101

I finally have an account on an Ultrix system
and have tracked down a couple problems.
The first was that `missing --run :' would fail like this:
(the other is in autoconf)

  $ sh missing --run :
  sh: ยบ: not found
  WARNING: `:' is needed, and you do not seem to have it handy on your

This patch seems to preserve the semantics and avoids the problem:

        * missing (--run): Use `eval' to run `"$@"'.  Otherwise, Ultrix4.4's
        /bin/sh fails and outputs garbage.

If anyone sees a problem with this, let me know.

Index: missing
===================================================================
RCS file: /fetish/fileutils/missing,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- missing     2001/03/16 08:37:01     1.6
+++ missing     2001/03/17 22:12:34     1.7
@@ -30,7 +30,7 @@
   # Try to run requested program, and just exit if it succeeds.
   run=
   shift
-  "$@" && exit 0
+  eval "$@" && exit 0
   ;;
 esac
 



reply via email to

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