From owner-freebsd-questions Wed Aug 12 11:09:22 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id LAA10118 for freebsd-questions-outgoing; Wed, 12 Aug 1998 11:09:22 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from superior.mooseriver.com (superior.mooseriver.com [208.138.27.81]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id LAA10096 for ; Wed, 12 Aug 1998 11:09:15 -0700 (PDT) (envelope-from jgrosch@superior.mooseriver.com) Received: (from jgrosch@localhost) by superior.mooseriver.com (8.8.8/8.8.8) id LAA20715; Wed, 12 Aug 1998 11:08:26 -0700 (PDT) (envelope-from jgrosch) Message-ID: <19980812110825.A20682@mooseriver.com> Date: Wed, 12 Aug 1998 11:08:25 -0700 From: Josef Grosch To: patl@phoenix.volant.org, Sascha Schumann Cc: "freebsd-questions@FreeBSD.ORG" Subject: Re: BASH prompt question [Env var style] Reply-To: jgrosch@mooseriver.com References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.91.1i In-Reply-To: ; from patl@phoenix.volant.org on Wed, Aug 12, 1998 at 10:14:05AM -0700 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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