Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 12 Aug 1998 11:08:25 -0700
From:      Josef Grosch <jgrosch@mooseriver.com>
To:        patl@phoenix.volant.org, Sascha Schumann <sas@schell.de>
Cc:        "freebsd-questions@FreeBSD.ORG" <freebsd-questions@FreeBSD.ORG>
Subject:   Re: BASH prompt question [Env var style]
Message-ID:  <19980812110825.A20682@mooseriver.com>
In-Reply-To: <ML-3.3.902942045.7962.patl@asimov>; from patl@phoenix.volant.org on Wed, Aug 12, 1998 at 10:14:05AM -0700
References:  <Pine.LNX.3.96.980804031907.17819A-100000@www.schell.de> <ML-3.3.902942045.7962.patl@asimov>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Aug 12, 1998 at 10:14:05AM -0700, patl@phoenix.volant.org wrote:
> > 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...

I am normally a bash user but when forced I will use ksh. I generally use

    export foo=blah

but the following works with Bourne

    foo=blah; export foo

I also perfer to keep my exportation and declarations together .


Josef

-- 
Josef Grosch           | Another day closer to a |    FreeBSD 2.2.7
jgrosch@MooseRiver.com |   Micro$oft free world  | UNIX for the masses


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?19980812110825.A20682>