fix problem where exec would lose on shell scripts with symlinks in

their names.  fix from "James W. Dolter" <jdolter@sawtooth.eecs.umich.edu>.
test script:

#!/bin/csh
mkdir /tmp/foodir
cat > /tmp/foodir/testscript <<EOF
#!/bin/sh
echo "Executing script \$1"
EOF
chmod 755 /tmp/foodir/testscript
(cd /tmp ; ln -s foodir foosym)
echo "Trying full path (w/o symlink) to /tmp/foodir/testscript"
/tmp/foodir/testscript "with out symlink"
echo "Trying full path (w/ symlink) to /tmp/foosym/testscript"
/tmp/foosym/testscript "with symlink"
echo "End of Test"
This commit is contained in:
cgd 1993-09-01 21:43:50 +00:00
parent 4e075d626f
commit 491d6b4b9d
1 changed files with 1 additions and 1 deletions

View File

@ -1 +1 @@
revision 1.23 intentionally removed revision 1.24 intentionally removed