Message-ID: <35EB3714.64B47FF0@cs.net> Date: Mon, 31 Aug 1998 19:51:48 -0400 From: "John M. Aldrich" Organization: Two pounds of chaos and a pinch of salt. MIME-Version: 1.0 To: Eli Zaretskii CC: RJ vd Boon , djgpp-workers AT delorie DOT com Subject: Re: How to locate djgpp.env? References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Precedence: bulk Eli Zaretskii wrote: > > > [1] Can't the preamble be more flexible? I guess putting a little > > expansion like bash does, in the code is asking a little too much I > > think. I mean something like: +TMPDIR=${%TEMP%:-%DJDIR%/tmp} which > > isn't possible (yet;-). > > Doesn't the following do it? > > +TEMP=%DJDIR%/tmp > TMPDIR=%TEMP% That still nukes people who set TMPDIR explicitly. I suggest the following: +TEMP=%DJDIR%/tmp +TMPDIR=%TEMP% This way, people get the results they want no matter which variables they set. -- --------------------------------------------------------------------- | John M. Aldrich | "Be wary of strong drink. It can | | aka Fighteer I | make you shoot at tax collectors-- | | mailto:fighteer AT cs DOT net | and miss." | | http://www.cs.net/fighteer/| - Lazarus Long | ---------------------------------------------------------------------