Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 7467 - error running scripts
Summary: error running scripts
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: tcsh
Version: 6.0
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Eido Inoue
QA Contact:
URL:
Whiteboard:
: 7471 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 1999-12-01 08:31 UTC by Erkan Ertugrul
Modified: 2008-05-01 15:37 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 1999-12-01 13:11:26 UTC


Attachments (Terms of Use)

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@excite.com

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. ***


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