On 05/16/2010 10:25 PM, Bruno Haible wrote:
+ # Test whether "$0" points to a test script. + case "$0" in + *.sh) true;; + *) false;; + esac
I think this is not a robust assumption. Maybe something like sh | *[a-z0-9]sh) false;; # $0 is a shell init.sh) false;; # $0 is ourselves *) true;; # assume $0 is a test script ? Paolo