Message-ID: X-Mailer: XFMail 1.3 [p0] on Linux X-Priority: 3 (Normal) Content-Type: text/plain; charset=iso-8859-1 MIME-Version: 1.0 In-Reply-To: X-no-Archive: yes Return-Read-To: markus DOT oberhumer AT jk DOT uni-linz DOT ac DOT at Return-Received-To: markus DOT oberhumer AT jk DOT uni-linz DOT ac DOT at Date: Tue, 04 May 1999 15:19:58 +0200 (CEST) From: "Markus F.X.J. Oberhumer" To: djgpp-workers AT delorie DOT com Subject: RE: v2.03: wrapping up Cc: Eli Zaretskii , Michel AT smr DOT nl Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id JAA29676 Reply-To: djgpp-workers AT delorie DOT com X-Mailing-List: djgpp-workers AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On 04-May-99 Michel de Ruiter wrote: > It doesn't *solve* it of course. It's an alternative to @@. > @ as well as { and } can appear in filenames, same problem > there. > >> Are you suggesting to say "/dev/env/DJDIR{c:/djgpp}", that is, to use >> the string inside the braces as the default value? > > Yes. Are there any drawbacks I am not aware of (of course there are, > but what are they)? Two comments on this: 1) /dev/env/DJDIR{c:/djgpp}/bin will get mis-expanded by csh/tcsh 2) the {} looks like a repeat-quantifier in a Perl regexp Not sure if this is a real problem, but to avoid any possible future incompatibilities I'd suggest a style that is 1) no glob expression 2) no posix/sed/perl regexp 3) not expanded by any common DOS/Unix shell 4) not expanded by any version of make/dmake/pmake/... 5) not expanded by Automake (Makefile.am -> Makefile.in) 6) not expanded by Autoconf (Makefile.in -> Makefile) 7) is a valid target-filename for make Actually /dev/env/DJDIR=c:/djgpp=/bin would be nice, but as said in my previous mail this has the drawback that you cannot assign a '=' to a shell variable under most DOS shells, and maybe it also doesn't fulfill 5 & 7 above (not tried). I still think that /dev/env/DJDIR~c:/djgpp~/bin could work, but we should definitely do more testing before deciding on this. Any other suggestions ? ----- Markus F.X.J. Oberhumer ----- ----- http://wildsau.idv.uni-linz.ac.at/mfx/ ----- ----- 5E CB 5C 85 DE AF 9E BF E9 DA 7E 6A 39 F8 CC 67 ----- 3 WARPS TO URANUS