From owner-freebsd-questions Mon Apr 3 12:28:17 2000 Delivered-To: freebsd-questions@freebsd.org Received: from mail.bfm.org (mail.bfm.org [216.127.218.26]) by hub.freebsd.org (Postfix) with ESMTP id 221C037B8D4 for ; Mon, 3 Apr 2000 12:27:53 -0700 (PDT) (envelope-from Ryugen@palaver.org) Received: from primo.bfm.org ([216.127.218.20]) by mail.bfm.org (Post.Office MTA v3.5.3 release 223 ID# 0-52399U2500L250S0V35) with SMTP id org for ; Mon, 3 Apr 2000 14:28:45 -0500 Received: from portapad.palaver.org (unverified [24.217.7.191]) by primo.bfm.org (EMWAC SMTPRS 0.83) with SMTP id ; Mon, 03 Apr 2000 14:27:51 -0500 Message-Id: <4.3.1.2.20000403141923.00a85930@mail.palaver.org> X-Sender: rfisher@mail.palaver.org X-Mailer: QUALCOMM Windows Eudora Version 4.3.1 Date: Mon, 03 Apr 2000 14:27:47 -0500 To: freebsd-questions@freebsd.org From: Ryugen@palaver.org (Ryugen C. Fisher) Subject: $CVSROOT In-Reply-To: References: <20000403162903.D85754@strontium.scientia.demon.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG At 01:24 PM 4/3/00, you wrote: >On Mon, 3 Apr 2000, Ben Smithurst wrote: > > > Ben Williams wrote: > > > > > Just out of curiosity why are all the examples I ever see re > > > setting environment variables in bash listed as: > > > > > > VARNAME=value; export VARNAME > > > > > > instead of: > > > > > > export VARNAME=value > > > ? > > > > export VARNAME=value is supposedly not guaranteed to work in all > > Bourne-type shells. > > It doesn't work in "classic" Bourne shell (like the one found on >Sun) but as long as the script you are working on will only be run in >bash, or on a modern Bourne shell system (like freebsd) then there is no >reason not to use it yourself. > > If on the other hand the script is being used for teaching or >illustration purposes, it's better to use a syntax that's guaranteed to be >portable across platforms. > >Doug Looking in the Lehey book, while working on a problem of my own, I noted that (pg 284-etc) a reference to $CVSROOT ... in a normal structure, and needing to do a "make world" I discovered that I don't have a CLUE what to set this variable TOO, although now that I am using bash and the above notes, I at least have a clue as to how to set it when I know what it is supposed to be....... thanks for solving 1/2 the puzzle.. care to help finish it? Ryugen, that "Old Frog" hisself Ryugen@palaver.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message