|
From: | Linda Walsh |
Subject: | Re: Unhelpful behaviors in 4.2.10(1) |
Date: | Sat, 09 Jun 2012 00:05:53 -0700 |
User-agent: | Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.8.1.24) Gecko/20100228 Lightning/0.9 Thunderbird/2.0.0.24 Mnenhy/0.7.6.666 |
Pierre Gaston wrote:
trap backtrace ERR set -TTo sum up ". sdf2" is returning 1 Bash considers . to be a simple command even though what's really executed is [[ $# -ge 2 ]] && echo hello.
--- Right.... It's NOT a simple command. I am trapping on ERR, not 'anything' that is not zero. Of all the stupid definitions... you have 256 useful values to return, and some idiots decide 255 of them should be reserved for fatal errors (even when they are not errors)... Is this even fixable?
[Prev in Thread] | Current Thread | [Next in Thread] |