Bug 75651

Summary: setenv in csh
Product: [Retired] Red Hat Linux Reporter: Need Real Name <eric.brueggmann>
Component: tcshAssignee: Nalin Dahyabhai <nalin>
Status: CLOSED NOTABUG QA Contact: Bill Huang <bhuang>
Severity: medium Docs Contact:
Priority: medium    
Version: 8.0   
Target Milestone: ---   
Target Release: ---   
Hardware: athlon   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2004-07-20 15:23:51 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 Need Real Name 2002-10-10 17:26:25 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1) Gecko/20020830

Description of problem:
Setting a variable with a "-" gives
syntax errors..

Version-Release number of selected component (if applicable):


How reproducible:
Always

Steps to Reproduce:
1.setenv a-b /c
2.
3.
	

Actual Results:  polk% setenv a-b /c
setenv: Syntax Error.
polk%


Additional info:

Comment 1 Need Real Name 2002-10-10 17:34:41 UTC
I beleave other shells are affected as well..

polk% bash
bash-2.05b$ A-B=/C
bash: A-B=/C: No such file or directory
bash-2.05b$ A_B=/C
polk% zsh
polk% A-B=/C
zsh: no such file or directory: A-B=/C


Comment 2 Tomasz Kepczynski 2002-10-13 12:10:23 UTC
According to bash man page:
name - A word  consisting only of alphanumeric characters and underscores and
beginning with an alphabetic character or an underscore. Also referred to as an
identifier.
The above applies to both function and variable names and therefore '-' cannot
be used in them.
I can't find it for tcsh but I am quite sure the same applies.
This is not a fault.

Comment 3 Brent Fox 2004-07-20 15:23:51 UTC
Closing as 'notabug'