From owner-freebsd-questions Wed Aug 12 10:14:42 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id KAA28897 for freebsd-questions-outgoing; Wed, 12 Aug 1998 10:14:42 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from phoenix.volant.org (phoenix.volant.org [205.179.79.193]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id KAA28888 for ; Wed, 12 Aug 1998 10:14:39 -0700 (PDT) (envelope-from patl@phoenix.volant.org) From: patl@phoenix.volant.org Received: from asimov.phoenix.volant.org ([205.179.79.65]) by phoenix.volant.org with smtp (Exim 1.92 #8) id 0z6eTV-0007NA-00; Wed, 12 Aug 1998 10:14:13 -0700 Received: from localhost by asimov.phoenix.volant.org (SMI-8.6/SMI-SVR4) id KAA01828; Wed, 12 Aug 1998 10:14:05 -0700 Date: Wed, 12 Aug 1998 10:14:05 -0700 (PDT) Reply-To: patl@phoenix.volant.org Subject: Re: BASH prompt question [Env var style] To: Sascha Schumann cc: "freebsd-questions@FreeBSD.ORG" In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; CHARSET=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > 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