Re: Bash help requested: Capturing command errors within pipes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



S P Arif Sahari Wibowo wrote:
On Thu, 19 Mar 2009, Daniel B. Thurman wrote:
How could one go about capturing command errors within pipes?

The variable $PIPESTATUS is just for that.

I tried it, seems not to work.

Try capturing a sed error when re1 or re2 has a bad regular
expression string.  I have not been able to catch the error.

--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines

[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux