[TriLUG] Odd behavior on different hosts
Joe Horvath
jkhorvath at yahoo.com
Wed Jul 16 15:52:40 EDT 2008
You may have an alias that has the same name as a function that you are trying to define.
Joe Horvath
jkhorvath at yahoo.com
----- Original Message ----
From: Shawn Taylor <shtaylor at gpi.com>
To: Triangle Linux Users Group General Discussion <trilug at trilug.org>
Sent: Wednesday, July 16, 2008 3:29:33 PM
Subject: [TriLUG] Odd behavior on different hosts
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
--
TriLUG mailing list : http://www.trilug.org/mailman/listinfo/trilug
TriLUG FAQ : http://www.trilug.org/wiki/Frequently_Asked_Questions
More information about the TriLUG
mailing list