env.d and tcsh

Kacper Kornet kornet at camk.edu.pl
Fri Oct 15 10:08:30 CEST 2004


Hi!
X-Edited-With-Muttmode: muttmail.sl - 2003-11-13



On Thu, Oct 14, 2004 at 09:31:55PM +0200, Paweł Gołaszewski wrote:
> On Thu, 14 Oct 2004, Kacper Kornet wrote:
> > Setting of variables from env.d does not work when tcsh is a login
> > shell. In csh.login is even a comment:
> 
> > -			set j = `grep -v "^#" $i |head -n 1`
> > -			eval set "$j"
> > +			set j = `grep -v "^#" $i |head -n 1|cut -s -d= -f1,2 --output-delimiter=' '`
> > +	                echo "$j"
> > +			eval setenv "$j"
> 
> Applied without one echo :)
> 
> Did you tested it well?

Unfortunately not enough. I forgot about the possibility of "=" in the value
of variable. In that case it does'nt work.

-- 
  Kacper Kornet




More information about the pld-devel-en mailing list