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

Re: one global way to set environment variables - xdm patch



In article <[🔎] 19980223203048.48297@hazel> you wrote:
> Andreas Jellinghaus <aj@dungeon.inka.de> wrote:
>> but i think there should realy be one global way to set environment
> ...
>> sourceing the file does not help, as the variables should be exported.


> How about:

> . /etc/environment
> eval export `cut -f1 -d= </etc/environment`

set -a is defined by posix you know.

> That works as long as you're working with a /bin/sh script. [Maybe
> eventually we have a line length problem, but hopefully we'll never have
> hundreds of kilobytes of environmental variable names, nor a shell that
> is too lame to deal with less].

Sure that's unlikely, but the limit is actually in the kernel.

-- 
Debian GNU/Linux 1.3 is out! ( http://www.debian.org/ )
Email:  Herbert Xu ~{PmV>HI~} <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-devel-request@lists.debian.org . 
Trouble?  e-mail to templin@bucknell.edu .


Reply to: