The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #5 (permalink)  
Old 05-24-2007
aigles's Avatar
aigles aigles is offline Forum Advisor  
Registered User
  
 

Join Date: Apr 2004
Location: Bordeaux, France
Posts: 1,433
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:.

Jean-Pierre.