env.d and tcsh
Paweł Gołaszewski
blues at pld-linux.org
Sun Oct 17 18:58:48 CEST 2004
On Sun, 17 Oct 2004, Kacper Kornet wrote:
> > But works in other cases? If so - better than before :) Can you fix
> > that?
> OK, attempt no. 2:
>
> #v+
> --- csh.login.old 2004-10-17 15:59:12.000000000 +0200
> +++ csh.login 2004-10-17 16:01:08.000000000 +0200
> @@ -35,8 +35,9 @@
> grep -v "^#" $i | head -n 1 > /dev/null
> if ($status == 0) then
> set backslash_quote
> - set j = `grep -v "^#" $i |head -n 1|cut -s -d= -f1,2 --output-delimiter=' '`
> - eval setenv "$j"
> + set j = `grep -v "^#" $i |head -n 1|cut -s -d= -f1 --output-delimiter=' '`
> + set j2 = `grep -v "^#" $i |head -n 1|cut -s -d= -f2-`
> + eval setenv "$j $j2"
> # FIXME: how to retrieve something like $$NAME ??
> # This is not working
> #setenv $NAME "$NAME"
> #v-
>
> Now it works well for every file in my /etc/env.d.
Great.
Now only to make it looks better and it'll be perfect ;)
--
pozdr. Paweł Gołaszewski
---------------------------------
If you think of MS-DOS as mono, and Windows as stereo,
then Linux is Dolby Pro-Logic Surround Sound with Bass Boost
and all the music is free.
More information about the pld-devel-en
mailing list