Mail Archives: djgpp-workers/1999/05/04/09:19:37
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 <markus DOT oberhumer AT jk DOT uni-linz DOT ac DOT at> -----
----- 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
- Raw text -