Hello all,
I am trying to get some of our old code to work, and have been having some troubles this morning. I was wondering if someone could help me.
My environment is HPUX running under ksh. I am having problems with the following statements:
set data [exec which macmenu_source_files]
source $data
If I do this, then I get an error of couldn't read file: no such file or directory. However, if I modify the code to this, then it works (the file macmenu_source_files is executable):
source macmenu_source_files
I need to be able to get the first method to work. Does anyone have any ideas why the first command would work and the second would not?
I am trying to get some of our old code to work, and have been having some troubles this morning. I was wondering if someone could help me.
My environment is HPUX running under ksh. I am having problems with the following statements:
set data [exec which macmenu_source_files]
source $data
If I do this, then I get an error of couldn't read file: no such file or directory. However, if I modify the code to this, then it works (the file macmenu_source_files is executable):
source macmenu_source_files
I need to be able to get the first method to work. Does anyone have any ideas why the first command would work and the second would not?