Bug 75651 - setenv in csh
setenv in csh
Product: Red Hat Linux
Classification: Retired
Component: tcsh (Show other bugs)
athlon Linux
medium Severity medium
: ---
: ---
Assigned To: Nalin Dahyabhai
Bill Huang
Depends On:
  Show dependency treegraph
Reported: 2002-10-10 13:26 EDT by Need Real Name
Modified: 2007-04-18 12:47 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2004-07-20 11:23:51 EDT
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 Need Real Name 2002-10-10 13:26:25 EDT
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:

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

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

Additional info:
Comment 1 Need Real Name 2002-10-10 13:34:41 EDT
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 08:10:23 EDT
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
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 11:23:51 EDT
Closing as 'notabug'

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