Subject: ksh vs. bash vs. zsh
To: None <netbsd-users@netbsd.org>
From: Aleksey Cheusov <cheusov@tut.by>
List: netbsd-users
Date: 12/06/2006 01:30:07
I guess there are lots of ksh funs here ;-)

Could you please show me ksh's analog to bash's PIPESTATUS
internal variable. I use this variable in PS1 prompt like this.

0 ~>true | false
0 1 ~>false | true
1 0 ~>false | true
1 0 ~>true | true
0 0 ~>

I just cannot live without this feature.

Another question is whether zsh has the same ability.

More global question is why there is _easy_ way to obtain
pipe status in standard /bin/sh but this is offtop here I thinks :(

-- 
Best regards, Aleksey Cheusov.