Red Hat Bugzilla – Bug 7467
error running scripts
Last modified: 2008-05-01 11:37:53 EDT
I can not run scripts.
In slackware linux, I would write 'chmod +x filename' and filename would
be 'filename*'. Then I would write filename at command prompt and it would
run. Now, there is no * added to filename and when filename is written at
command prompt, it behaves as if a bad command is entered.
Thanks for your interest.
There are two problems here:
1) The asterisk at the end of the file name is added by ls when
given the option -F. Try adding
alias ls 'ls -F'
to your .cshrc
2) Your PATH environment variable does not contain the current directory
so tcsh cannot find the filename entered on the command line. Either execute
the script as
(the preferred solution) or add the current directory to your PATH
setenv PATH "$PATH:."
Note: Adding the current directory to the end of your PATH is not recommended
because it makes you vulnerable to "trojan horses" (i.e. scripts with the
same name as a commonly used executable).
*** Bug 7471 has been marked as a duplicate of this bug. ***