Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

which command failed?



obviously the shell can already parse something like this:

	foo || bar && baz | grep abc\|xyz

so, without reinventing the wheel, what's a good way to determine which of those commands returned a non-zero exit status to the shell? what if i have a more complicated sublist? or a list?

the grep example above shows a shortcoming of splitting on the pipe, and that doesn't even begin to deal with conditional expressions or lists.

any thought?


--
        ...atom

 ________________________
 http://atom.smasher.org/
 762A 3B98 A3C3 96C9 C6B7 582A B88D 52E4 D9F5 7808
 -------------------------------------------------

	"Insanity is doing the same thing over and over
	 again and expecting different results."
		-- Albert Einstein




Messages sorted by: Reverse Date, Date, Thread, Author