[plug] bash source command

Jim Householder nofixed at westnet.com.au
Thu Oct 12 17:32:50 WST 2006


Hi

I wanted to know if there was a way for a script to know if it has been 
invoked with the source command.

$ cat > test
echo $0
<ctrl-d>
$ chmod 777 test
$ ./test
./test
$ . ./test
/bin/bash
$

So now I know.

HTH
Jim



More information about the plug mailing list