Bug 76539 - setenv syntax error when concatenating variable names
Summary: setenv syntax error when concatenating variable names
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: tcsh
Version: 8.0
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Miloslav Trmač
QA Contact: Bill Huang
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2002-10-23 01:54 UTC by Elmer J. Fudd
Modified: 2007-04-18 16:47 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2004-08-19 16:15:27 UTC
Embargoed:


Attachments (Terms of Use)

Description Elmer J. Fudd 2002-10-23 01:54:08 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1) Gecko/20021003

Description of problem:
I get a syntax error when trying to concatenate variable names in tcsh,
specifically when creating a new variable in a call to setenv.  The new variable
name is the value held in another defined variable appended with another string.

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


How reproducible:
Always

Steps to Reproduce:
1.set var1=value1
2.setenv $var1'db' value2
3.env | grep $var1
	

Actual Results:  > set var1=value1
> setenv $var1'db' value2
setenv: Syntax Error
> env | grep $var1
<blank line>

Expected Results:  > set var1=value1
> setenv $var1'db' value2
> env | grep $var1
value1db=value2

Additional info:

Comment 1 Miloslav Trmač 2004-08-19 16:15:27 UTC
This is fixed in tcsh-6.13-1 in rawhide.


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