trying to change directory in csh script. But i am getting following error :
~/.setprompt
: No such file or directory
permission of above file is like that :
-rwxrwxrwx 1 vgangwar 46 Oct 5 2015 /home/vgangwar/.setprompt
trying to change directory in csh script. But i am getting following error :
~/.setprompt
: No such file or directory
permission of above file is like that :
-rwxrwxrwx 1 vgangwar 46 Oct 5 2015 /home/vgangwar/.setprompt
In my script, somewhere i am doing set noglob
which causing the problem.
noglob - When set prevent filename expansion with wildcard pattern matching
after it , i am trying to change the directory using cd command. That's why i am getting error which is shown in question. It is solved by unsetting the noglob
(unset noglob
) variable before changing the directory.