$ source $iraf/unix/hlib/irafuser.csh
bash: /iraf/iraf//unix/hlib/irafuser.csh: line 10: syntax error near unexpected token `else'
bash: /iraf/iraf//unix/hlib/irafuser.csh: line 10: `else if (-f /etc/SuSE-release) then'
what should I do instead?
$ source $iraf/unix/hlib/irafuser.csh
bash: /iraf/iraf//unix/hlib/irafuser.csh: line 10: syntax error near unexpected token `else'
bash: /iraf/iraf//unix/hlib/irafuser.csh: line 10: `else if (-f /etc/SuSE-release) then'
what should I do instead?
source is for bash. you are running source on csh scripts. try "rehash" instead.
bash: rehash: command not found
dude, why are you running csh scripts from bash? it doesnt work.
you need to be using csh to run csh scripts.
Bookmarks