Hi
While running a Shell Script in a K Shell using the source command
source <script_name>
It gives the error ..
source: not found. Null message body; hope that's ok
Is it that the source command does not work in K Shell. It works well in bash shell.
Use a dot:
. scriptname
source should be equivalent to the dot, my korn shell says "ksh: source: not found" also, maybe that source is an alias we haven't defined.
First, 'source' in bash doesn't run anything, but includes the code the file (much like #include in C) Second, the Korn Shell (ksh) doesn't know 'source', but has '.', which works in bash just the same, eg:
. ./other_script