output when command exits with non-zero status
"echo AWK might do it | sed 's/it*$//' | grep it?"
How do I get Terminal to tell me the command that generated this error
MAC pro, Mac OS X (10.4.11)
MAC pro, Mac OS X (10.4.11)
"AWK might do it"
The return status of a pipeline is the exit status of the last command,
unless the pipefail option is enabled. If pipefail is enabled, the
pipeline's return status is the value of the last (rightmost) command
to exit with a non-zero status, or zero if all commands exit success-
fully.
Normally, exit status is 0 if selected lines are found and 1 otherwise.
But the exit status is 2 if an error occurred, unless the -q or --quiet
or --silent option is used and a selected line is found.
output when command exits with non-zero status