[Top][All Lists]

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

Re: 02-lineno.patch

From: Raja R Harinath
Subject: Re: 02-lineno.patch
Date: Mon, 01 Oct 2001 21:07:45 -0500
User-agent: Gnus/5.090004 (Oort Gnus v0.04) Emacs/21.0.105


Akim Demaille <address@hidden> writes:
> <Just an idea passing through my head, after having made a short stop>
> Am I missing something, or sourcing instead of exec'ing would solve
> all the problems?  Our problems are related to the ID of the script,
> but sourcing doesn't change it, right?

I tried the following 

  --- lib/m4sugar/m4sh.m4 2001/09/27 08:27:55     1.51
  +++ lib/m4sugar/m4sh.m4 2001/10/01 22:47:59
  @@ -152,5 +152,6 @@ if test "x$as_lineno_1"  = "x$as_lineno_
       chmod +x $as_me.lineno
  -  exec ${SHELL-/bin/sh} ./$as_me.lineno ${1+"address@hidden"}
  +  . ./$as_me.lineno
  +  exit 0
It passes 'make check' on linux and Solaris.  I also tried a hacked
version of m4sh.m4 which unset LINENO just before all this stuff, and
that passed 'make check' on Linux with bash.  So, seems OK.

- Hari
Raja R Harinath ------------------------------ address@hidden
"When all else fails, read the instructions."      -- Cahn's Axiom
"Our policy is, when in doubt, do the right thing."   -- Roy L Ash

reply via email to

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