[TriLUG] Odd behavior on different hosts

Shawn Taylor shtaylor at gpi.com
Wed Jul 16 15:29:33 EDT 2008


Hey Folks,

I have a strange problem I am experiencing with a shell script. I have a
bunch of bash shell scripts that are purely function definitions. I then
include these functions in my scripts as I need them using the following:

source /path_to_function_script_file

Now on most of the hosts in our environment this works fine.

However, on one box in particular I get the following error:

'/script.sh: /export/home/my_uid/scr/sh/lib/db.lib: line 14: syntax error
near unexpected token `{

If I cat /etc/release on both machines the results are identical.
If I execute bash --version on both machines the results are identical.

My question is, are there other factors that could be causing the
inconsistent behavior??

Thanks for any and all help!

Shawn




More information about the TriLUG mailing list