![]() |
|
P is for Practical | |
PerlMonks |
Re: best practices for checking system return values for piped commands?by billh (Pilgrim) |
on May 02, 2006 at 12:39 UTC ( #546873=note: print w/replies, xml ) | Need Help?? |
Just to add a little to what others have said, 'true' is not the best possible choice for a 2nd command since: 1. it isn't reading it's stdin in so won't detect anything wrong. 2. 'true' tries its hardest to live up to its name, always exiting with status zero.
Bill H
In Section
Seekers of Perl Wisdom
|
|