summary refs log tree commit diff
path: root/src/nodetypes
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2007-10-15 20:24:28 +0800
committerHerbert Xu <herbert@gondor.apana.org.au>2007-10-15 20:24:28 +0800
commit03b4958dd49fda257c130d3fd9f1b6bafc00e36d (patch)
tree91c3aff84b78253b644853248ad6f4a685ebc3aa /src/nodetypes
parent[BUILTIN] Use setvarint to set OPTIND (diff)
downloaddash-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 'src/nodetypes')
0 files changed, 0 insertions, 0 deletions
2021-01-11Publish "Using vi"June McEnroe 2021-01-11Enable diff.colorMovedJune McEnroe 2021-01-10Set less search case-insensitiveJune McEnroe 2021-01-10Set EXINITJune McEnroe 2021-01-09Add c -t flag to print expression typeJune McEnroe 2021-01-05Update taglineJune McEnroe