|
From: | David Boyce |
Subject: | Re: Trapping failed commands |
Date: | Tue, 01 Feb 2005 22:14:41 -0500 |
At 09:27 PM 2/1/2005, Paul D. Smith wrote:
%% address@hidden (Vite Schnell) writes: vs> I'm trying to prevent Make from exiting upon receiving a non-zero vs> exit status value from a command. Is there any way I can "trap" a vs> failure in order to keep processing other targets? foo: command || true
I prefer to save a fork/exec and also remove an unnecessary dependence on PATH: foo: command ||:Of course there are some shells for which "true" is a builtin but ":" has been one since the beginning of time.
-dsb
[Prev in Thread] | Current Thread | [Next in Thread] |