delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1995/01/31/20:29:46

Date: Wed, 1 Feb 1995 02:01:36 +0900
From: Stephen Turnbull <turnbull AT shako DOT sk DOT tsukuba DOT ac DOT jp>
To: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: symlink to g++ [was: Yet another subjectless message]

   Stephen Turnbull <turnbull AT shako DOT sk DOT tsukuba DOT ac DOT jp> wrote:-

   > g++ only works if you have a program by that name. I believe "g++.exe"
   > is a legal DOS file name ...

   It ain't. `+' is a legal filename character in Unix but not in DOS. In DOS,
   `+' is a wildcard of some sort. DOS filenames can only contain 0-9 A-Z
   _^$~!#%&-[]()@`'

OK, OK, I get the point, I don't need any more education.  :-)  But as
long as we're here....

Since the restriction is at least partially a COMMAND.COM restriction,
not a DOS restriction, one should be considerate of other shells.
4DOS for one gets very upset about ^%@`', and I think that [] also
cause problems (although the parser may be context sensitive enough to
tell the difference between that usage and the use in variable
functions).  In fact, COMMAND.COM also should be unable to access a
file name with % in it, since that's the environment variable prefix.

-- 
Steve


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019