Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
which command failed?
- X-seq: zsh-users 12733
- From: Atom Smasher <atom@xxxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: which command failed?
- Date: Fri, 28 Mar 2008 23:55:40 +1300 (NZDT)
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- Openpgp: id=0xB88D52E4D9F57808; algo=1 (RSA); size=4096; url=http://atom.smasher.org/pgp.txt
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