Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 136111 - "eselect env update" generates invalid /etc/profile.csh
Summary: "eselect env update" generates invalid /etc/profile.csh
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: eselect (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo eselect Team
URL:
Whiteboard:
Keywords: InVCS
: 145814 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-06-08 13:00 UTC by Patrick McLean
Modified: 2006-09-02 16:58 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
eselect-csh-setenv.patch (eselect-csh-setenv.patch,310 bytes, patch)
2006-06-08 13:04 UTC, Patrick McLean
Details | Diff
Patch to fix generation of both profile.env and profile.csh files (eselect-env-csh-fix.diff,562 bytes, patch)
2006-06-08 16:16 UTC, Danny van Dyk (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Patrick McLean gentoo-dev 2006-06-08 13:00:16 UTC
setenv: Syntax Error.
Comment 1 Patrick McLean gentoo-dev 2006-06-08 13:03:19 UTC
Sorry, accidently hit enter when I was typing the summary

Anyway, it currently generates an invalid profile.csh, when you try to source it you get an error

 $ source /etc/profile.csh
setenv: Syntax Error.
 $

The problem appears to be it is generating the setenv's in the format:
setenv VAR='value'

I will be attaching a patch shortly that fixes this by changing the generated format to the proper
setenv ENV 'value'
Comment 2 Patrick McLean gentoo-dev 2006-06-08 13:04:13 UTC
Created attachment 88713 [details, diff]
eselect-csh-setenv.patch

This modifies the sed expression command that generates the profile.csh to change the "=" to a space.
Comment 3 Danny van Dyk (RETIRED) gentoo-dev 2006-06-08 16:16:12 UTC
Created attachment 88723 [details, diff]
Patch to fix generation of both profile.env and profile.csh files

.en generation as broken, too. (But only in rare cases when escaped '"' occured
in the envvars.)

Patrick: please try this patch and report if it still works for you.
Comment 4 Patrick McLean gentoo-dev 2006-06-08 17:42:35 UTC
That patch seems to work fine.
Comment 5 Danny van Dyk (RETIRED) gentoo-dev 2006-06-11 07:25:15 UTC
InSVN
Comment 6 Danny van Dyk (RETIRED) gentoo-dev 2006-07-03 12:48:08 UTC
Fixed as of eselect-1.0.3
Comment 7 Danny van Dyk (RETIRED) gentoo-dev 2006-09-02 16:58:35 UTC
*** Bug 145814 has been marked as a duplicate of this bug. ***