Russell Quinn wrote:
> ls | foo
> 
> echo ${PIPESTATUS[0]}
> 
> I just couldn't get it to work from Ruby

try 'ls | echo; exit ${PIPESTATUS[0]}'
-- 
Posted via http://www.ruby-forum.com/.