Bug 76539

Summary: setenv syntax error when concatenating variable names
Product: [Retired] Red Hat Linux Reporter: Elmer J. Fudd <bilodeau>
Component: tcshAssignee: Miloslav Trmač <mitr>
Status: CLOSED RAWHIDE QA Contact: Bill Huang <bhuang>
Severity: medium Docs Contact:
Priority: medium    
Version: 8.0   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2004-08-19 16:15:27 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 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.