Problems? Is your data what you think it is? | |
PerlMonks |
comment on |
( [id://3333]=superdoc: 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 reply to Re: best practices for checking system return values for piped commands?
by billh
|
|