Hi All,
I know this is a simple to answer one... but its hard to search google for source'ing or executing a script with '. script'.
Basically, i've realised it seems possible to have one script...
test.sh
Code:
#!/bin/bash
. test1.sh
test1.sh
Code:
#!/bin/bash
echo $@
The thing is...
Code:
./test.sh 123 456
Output:-
123 456
I didn't realise the args of script test.sh would be passed to and able to be used in script test1.sh
Just wondering why this happens more than anything? Its not a problem or anything really... just interested.
Thanks and Regards,
M