Hi,
1)Migrating from AIX 4.3.2 to SCO 5.X..
2)Code has the statement
x=`basename $0 .sh`....
3) Under AIX environment, irrespective of the calling module, the above statement returns "script name without the .sh"..
Whereas in SCO 5.X, the same statement returns
"the modulename without the .sh"..
For example,
Main script name is "sesame.sh" and in "sesame.sh" there are modules like "ReadInFile" , "UpdateTheTable" etc.,
Under AIX, when the basename statement shown above is used, value returned is "sesame" - always;
Whereas in SCO, value returned by the same statement depends on from which module the statement is executed...the value returned could be "ReadInFile" or "UpdateTheTable" etc..
Why the difference? How to solve? Please!
1)Migrating from AIX 4.3.2 to SCO 5.X..
2)Code has the statement
x=`basename $0 .sh`....
3) Under AIX environment, irrespective of the calling module, the above statement returns "script name without the .sh"..
Whereas in SCO 5.X, the same statement returns
"the modulename without the .sh"..
For example,
Main script name is "sesame.sh" and in "sesame.sh" there are modules like "ReadInFile" , "UpdateTheTable" etc.,
Under AIX, when the basename statement shown above is used, value returned is "sesame" - always;
Whereas in SCO, value returned by the same statement depends on from which module the statement is executed...the value returned could be "ReadInFile" or "UpdateTheTable" etc..
Why the difference? How to solve? Please!