From: Albert Schlef Date: 2008-05-08T01:16:35+09:00 Subject: Re: Getting pipe return codes from SYSTEM command 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/.