Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 12 Aug 1998 10:14:05 -0700 (PDT)
From:      patl@phoenix.volant.org
To:        Sascha Schumann <sas@schell.de>
Cc:        "freebsd-questions@FreeBSD.ORG" <freebsd-questions@FreeBSD.ORG>
Subject:   Re: BASH prompt question [Env var style]
Message-ID:  <ML-3.3.902942045.7962.patl@asimov>
In-Reply-To: <Pine.LNX.3.96.980804031907.17819A-100000@www.schell.de>

next in thread | previous in thread | raw e-mail | index | archive | help
> My profile files etc are set up in the way
> 
> A=asdasd
> B=sthelse
> C=hohoh
> 
> export A B C
> 
> So, I don't have to type 1000s of exports...

I prefer:

	declare -x A=asdasd
	declare -x B=sthelse
	declare -x C=hohoh

or

	declare -x A=asdasd B=sthelse C=hohoh

It keeps the exportation and declaration together; and I think it
looks cleaner than separate exports.  Of course, it doesn't work
in classic Bourne shell...



-Pat

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?ML-3.3.902942045.7962.patl>