[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] Read /etc/environment first to allow changing environment fr

From: Danny Milosavljevic
Subject: Re: [PATCH] Read /etc/environment first to allow changing environment from user profile
Date: Wed, 27 Jul 2016 18:31:42 +0200

>   while read line; do export "$line"; done < /etc/environment
> I don't know if Guix even cares about non-bash shells, but this should™
> work in all POSIX®-compliant ones[4]. It's also more readable.
> Thoughts? Gotchas?

Spaces in keys and/or values don't work that way. The read itself already has 
problems with them. You might try setting IFS="
" but not sure whether that's standards-compliant.

Also, does csh actually support "export"? The one I have in Solaris doesn't. 
You need to do "setenv" there.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]