>-----Original Message----- >From: Oliver Schrenk [mailto:[email protected]] > >It's a good idea but not suitable for my case. If I'm calling sh, the real >script would be an argument.In my case this would break the test cases for >my command line argument validation tool.
cat > aa.sh <<EOF #!/bin/sh echo 0:$0 echo 1:$1 EOF > chmod +x aa.sh > ./aa.sh 0:./aa.sh 1: > ./aa.sh a 0:./aa.sh 1:a > sh ./aa.sh a 0:./aa.sh 1:a That looks exactly the same to me. What kind of shell are you using that breaks this? eric --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
