|
From: | Paolo Bonzini |
Subject: | Re: [BLOCKER] cannot single-step unit tests any more |
Date: | Wed, 26 May 2010 12:56:15 +0200 |
User-agent: | Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.9) Gecko/20100330 Fedora/3.0.4-1.fc12 Lightning/1.0b2pre Thunderbird/3.0.4 |
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
[Prev in Thread] | Current Thread | [Next in Thread] |