Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: More verbose && ?
- X-seq: zsh-users 14722
- From: Richard Hartmann <richih.mailinglist@xxxxxxxxx>
- To: Richard Hartmann <richih.mailinglist@xxxxxxxxx>, zsh-users@xxxxxxx
- Subject: Re: More verbose && ?
- Date: Wed, 20 Jan 2010 18:34:00 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=V2gHUwifpeMY/9URF9QXGmk+8OqZnS0FtiiWsEjCG+4=; b=lCEBLK3r4ETtYASZ/4Y+uwc0je/+/yU0NBVCgYzUmLVGDGcRXq16ByvmHAjjEIJ/mD 62X0asueE0U965SG8Jr6QPTkvVH9BAoEVgw+YeucCAuxEIk3ffqXia21vmSZaFgjn+Yl 5nCkMASE8XocwtWLUWQw3QlGTt6CwT9dYpMaw=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=ppBzyHItVYepq1Hbq9mib/kB7Q8tGhErYFaTsjzjQTU9vkHppSt2pduo8P3WB8yQQi ZT0tVwptMscYr4jqFPJe0l2VWRx5vQNxdXBIu/Aai+5iC1N5lv0A9g5iQ/A8hm2m8qhn +zCf54HVDC42eXC7mWgHORYS0MloVOTLv2NM4=
- In-reply-to: <chaz20100120171020.GC3872@xxxxxxxx>
- 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
- References: <2d460de71001200834i7037df54h647f7b01d6ebdc4@xxxxxxxxxxxxxx> <chaz20100120171020.GC3872@xxxxxxxx>
On Wed, Jan 20, 2010 at 18:10, Stephane Chazelas
<stephane_chazelas@xxxxxxxx> wrote:
> r() { last_run_command=${(j: :)*}; "$@"; }
> report() {
> Âexit_code=$?
> Âprintf >&2 'Error(%d): "%s"\n' "$exit_code" "$last_run_command"
> Âreturn "$exit_code"
> }
That works just as expected, but for two things:
1) I need to run `report`
2) It does not work on the unaltered command I posted in my initial
email.
I would definitely prefer an invisible and automagic way, ideally activated
via an option.
Thanks,
Richard
Messages sorted by:
Reverse Date,
Date,
Thread,
Author