Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
More verbose && ?
- X-seq: zsh-users 14720
- From: Richard Hartmann <richih.mailinglist@xxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: More verbose && ?
- Date: Wed, 20 Jan 2010 17:34:38 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=F6G6yFrYod806rFJ8jP5tHqXdVeD7NhwrFSIwY498As=; b=PdRe0cxK6Js6Ega6ds6U0nrmgx9LUxNI3fWvgneih4NTPym2jW2IbsZaxEMTitJnuk XDyvgDpPvzEsVGmPAJGjefP/85QgDqTs0yFXhBsfHsxyeIxXe9WNnC/zK3QNMr0FkbpX 8CV83Jx7D5Fk74pUQTj8I7tjZGnIukQU+16so=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=hfooYuOfqhysBiS7q1zuo4TxXRvV0pN73MD4LIvg+zthQpzdsH4Y4ZsTnHDpEi8ubT AbR2lHzrhf/Haiy7x4GU2AgI1jiSqA2Vkt+ftwEifp5uQDzob4tsWHqEH2m+vVVWs/lq y2IJHuDyaoEQwXKdjJvmGE1+6qxD5HU65GV6o=
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
Hi all,
I am wondering if there is a way to make && more verbose. Specifically,
I am interested in where it failed in case it does.
Consider this, admittedly crafted, example:
rm dontexist
touch exist
echo yes && cat exist 2>/dev/null && cat dontexist 2>/dev/null && echo no
This will not tell you _where_ it failed, just that it did (and even
that only implicitely via return codes). I would prefer something along
the lines of:
Error executing "echo yes && cat exist 2>/dev/null && cat dontexist
2>/dev/null && echo no": "cat dontexist" failed.
Or just
Error(1): "cat dontexist"
(1) being the, optional, return code being displayed.
Does anyone else think this could be useful?
Thanks,
Richard
Messages sorted by:
Reverse Date,
Date,
Thread,
Author