zsh-users
 help / color / mirror / code / Atom feed
* Stop script if one command returns != 0
@ 2014-05-14 14:01 Florian Lindner
  2014-05-14 14:19 ` Chris Johnson
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Florian Lindner @ 2014-05-14 14:01 UTC (permalink / raw)
  To: zsh-users

Hello,

I have a script that I source with a number of commands and exports. Is 
there a way to tell zsh (or even in a portable way to sh) to stop 
execution of this script if any of the commands returns a return code 
other than zero?

Thanks,

Florian


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2014-05-14 16:31 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-05-14 14:01 Stop script if one command returns != 0 Florian Lindner
2014-05-14 14:19 ` Chris Johnson
2014-05-14 14:20 ` Peter Stephenson
2014-05-14 14:31   ` Florian Lindner
2014-05-14 15:10     ` Bart Schaefer
2014-05-14 16:22   ` Roman Neuhauser
2014-05-14 14:21 ` Florian Lindner
2014-05-14 14:35   ` Peter Stephenson
2014-05-14 14:49     ` Peter Stephenson

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).