Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > gnu.bash.bug > #16490

Re: [PATCH] Makefile.in: Make for loop failures fatal

From Chet Ramey <chet.ramey@case.edu>
Newsgroups gnu.bash.bug
Subject Re: [PATCH] Makefile.in: Make for loop failures fatal
Date 2020-06-29 11:08 -0400
Organization ITS, Case Western Reserve University
Message-ID <mailman.656.1593443329.2574.bug-bash@gnu.org> (permalink)
References <20200627201035.39077-1-jrtc27@jrtc27.com> <b9329da9-b5a5-a073-2500-5b94e4ad8f36@case.edu>

Show all headers | View raw


On 6/27/20 4:10 PM, Jessica Clarke wrote:
> Without set -e, these for loops will exit with code 0 and so make will
> regard the recipes as being successful.

If the last command in the body exits with status 0, yes. I'm going to do
this a different way that doesn't use `set -e'.

Chet

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
		 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    chet@case.edu    http://tiswww.cwru.edu/~chet/

Back to gnu.bash.bug | Previous | Next | Find similar


Thread

Re: [PATCH] Makefile.in: Make for loop failures fatal Chet Ramey <chet.ramey@case.edu> - 2020-06-29 11:08 -0400

csiph-web