ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: "Dmitry V. Levin" <ldv@altlinux.org>
To: ALT Devel discussion list <devel@altlinux.ru>
Subject: Re: [devel] Код возврата при конвейере
Date: Wed, 9 Mar 2005 00:51:03 +0300
Message-ID: <20050308215103.GB7209@basalt.office.altlinux.org> (raw)
In-Reply-To: <20050308200336.GB2512@hell.immo.ru>

[-- Attachment #1: Type: text/plain, Size: 919 bytes --]

On Tue, Mar 08, 2005 at 11:03:36PM +0300, Alexey I. Froloff wrote:
> * Alexey Rusakov <ktirf@> [050308 20:36]:
> > А вы случайно не знаете, zsh этот самый exitvalue не может ли отдать в 
> > несколько менее prettyprint'нутом виде?
> info zsh -> Parameters -> Parameters Set By The Shell:
> 
> pipestatus <S> <Z>
>      An array containing the exit values returned by all commands in the
>      last pipeline.
> 
> $ true | false | true | false | true | false | true      
> zsh: 19417 done       true | 
> zsh: 19418 exit 1     false | 
> zsh: 19419 done       true | 
> zsh: 19420 exit 1     false | 
> zsh: 19421 done       true | 
> zsh: 19422 exit 1     false
> $ echo $pipestatus
> 0 1 0 1 0 1 0

- это zsh-specific.

$ true | false | true | false | true | false | true; echo ${PIPESTATUS[*]}
0 1 0 1 0 1 0
- это bash-specific.

Обычный SUSv3 shell этого может и не уметь.


-- 
ldv

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

  parent reply	other threads:[~2005-03-08 21:51 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-03-06 11:15 Vitaly Lipatov
2005-03-06 17:14 ` Dmitry V. Levin
2005-03-06 17:39   ` Alexey Rusakov
2005-03-06 17:53   ` Alexey I. Froloff
2005-03-07 12:13     ` Alexey Rusakov
2005-03-08 16:18       ` Alexey I. Froloff
2005-03-08 17:34         ` Alexey Rusakov
2005-03-08 20:03           ` Alexey I. Froloff
2005-03-08 20:09             ` Alexey I. Froloff
2005-03-08 20:35               ` [devel] [JT] " Alexey Rusakov
2005-03-08 21:51             ` Dmitry V. Levin [this message]
2005-03-09  9:13               ` [devel] " Michael Shigorin
2005-03-10  6:18     ` Alexey Tourbin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20050308215103.GB7209@basalt.office.altlinux.org \
    --to=ldv@altlinux.org \
    --cc=devel@altlinux.ru \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Team development discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
		devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
	public-inbox-index devel

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.devel


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git