diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2007-10-15 20:24:28 +0800 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2007-10-15 20:24:28 +0800 |
commit | 03b4958dd49fda257c130d3fd9f1b6bafc00e36d (patch) | |
tree | 91c3aff84b78253b644853248ad6f4a685ebc3aa /ChangeLog | |
parent | [BUILTIN] Use setvarint to set OPTIND (diff) | |
download | dash-03b4958dd49fda257c130d3fd9f1b6bafc00e36d.tar.gz dash-03b4958dd49fda257c130d3fd9f1b6bafc00e36d.zip |
[EXEC] Fixed execing of scripts with no hash-bang
The function tryexec used the original name instead of the path found through PATH search. This patch fixes that. Test case: trap 'rm -f $TMP' EXIT TMP=$(tempfile -s nosuchthing) cat <<- EOF > $TMP echo OK EOF chmod u+x $TMP cd / PATH=${TMP%/*} ${TMP##*/} Old result: /bin/sh: Can't open filelgY4Fanosuchthing New result: OK
Diffstat (limited to 'ChangeLog')
-rw-r--r-- | ChangeLog | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog index 00c09c3..60bdfb5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2007-10-15 Herbert Xu <herbert@gondor.apana.org.au> + + * Fixed execing of scripts with no hash-bang. + 2007-10-11 Herbert Xu <herbert@gondor.apana.org.au> * Add assignment support in arithmetic expansions. |