help-make
[Top][All Lists]
Advanced

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

Re: shell trap builtin in rules


From: Paul D. Smith
Subject: Re: shell trap builtin in rules
Date: Wed, 8 Nov 2006 19:24:54 -0500

On Wednesday, 8 November, Martin Sebor (address@hidden) wrote:

> > It works for me.  Maybe it's your shell?
> 
> Apparently. I originally ran my code on Solaris. I have tried
> /usr/xpg4/bin/sh but got the same results. AIX, HP-UX, IRIX,
> and Tru64 all behave the same as well. Bash is the only shell
> that produces the result I expect.

Odd.  Can you try this without make involved; what behavior do you get?

    $ /bin/sh -c "trap 'echo \$?' EXIT && exit 1"

?

Also, try using "0" instead of EXIT; maybe the other shells don't accept the
translated values?

-- 
-------------------------------------------------------------------------------
 Paul D. Smith <address@hidden>          Find some GNU make tips at:
 http://www.gnu.org                      http://make.paulandlesley.org
 "Please remain calm...I may be mad, but I am a professional." --Mad Scientist




reply via email to

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