Quote:
|
Originally Posted by blowtorch
What shell are you using for this? I tried this with sh, ksh and bash, and it worked with all three. I had to make one modification though:
Code:
#!/usr/bin/bash
echo "Hello World"
. ./test_common.lib
get_info
Without the "./" it was giving a "./test.sh: test_common.lib: not found" error under sh and ksh.
|
Works fine if "." is included in the PATH variable, for example :
Code:
PATH=/usr/bin:/etc:/usr/sbin:/usr/ucb:/usr/bin/X11:/sbin:.