Bug 7467 - error running scripts
error running scripts
Product: Red Hat Linux
Classification: Retired
Component: tcsh (Show other bugs)
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Eido Inoue
: 7471 (view as bug list)
Depends On:
  Show dependency treegraph
Reported: 1999-12-01 03:31 EST by Erkan Ertugrul
Modified: 2008-05-01 11:37 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 1999-12-01 08:11:26 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Erkan Ertugrul 1999-12-01 03:31:08 EST
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
Comment 1 Jeff Johnson 1999-12-01 08:11:59 EST
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).
Comment 2 Jeff Johnson 1999-12-01 08:28:59 EST
*** Bug 7471 has been marked as a duplicate of this bug. ***

Note You need to log in before you can comment on or make changes to this bug.