Bug 7467

Summary: error running scripts
Product: [Retired] Red Hat Linux Reporter: Erkan Ertugrul <eertugrul>
Component: tcshAssignee: Eido Inoue <havill>
Status: CLOSED NOTABUG QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 6.0   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 1999-12-01 13:11:26 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Erkan Ertugrul 1999-12-01 08:31:08 UTC
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.

Erkan Ertugrul
eertugrul

Comment 1 Jeff Johnson 1999-12-01 13:11:59 UTC
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
	./filename
(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).

Comment 2 Jeff Johnson 1999-12-01 13:28:59 UTC
*** Bug 7471 has been marked as a duplicate of this bug. ***