www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/10/27/18:25:17

From: Erik Max Francis <max AT alcyone DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: /? command line args being altered by DJGPP
Date: Tue, 27 Oct 1998 15:16:21 -0800
Organization: Alcyone Systems
Lines: 22
Message-ID: <36365445.4233A837@alcyone.com>
References: <199810271837 DOT TAA25985 AT acp3bf DOT physik DOT rwth-aachen DOT de>
NNTP-Posting-Host: charmaine.alcyone.com
Mime-Version: 1.0
X-Mailer: Mozilla 3.01 (X11; I; Linux 2.0.34 i686)
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Hans-Bernhard Broeker wrote:

> In comes another Unixism: the shell filenaming globbing. ...
> 
> Only if no matching filenames are found, the pattern (including ? and
> *) will be passed to the subprogram, instead.

Note that no shells that I'm aware of (certainly not the most popular
ones) do this; if there is no match to the glob, either nothing will be
past (it will evaluate to null) or the shell will return an error and
not execute the command.  If you actually want shell metacharacters in a
command, you have to escape them (either by preceding them with a
backslash or by quoting them).

-- 
Erik Max Francis / email max AT alcyone DOT com / whois mf303 / icq 16063900 
Alcyone Systems / irc maxxon (efnet) / finger max AT sade DOT alcyone DOT com
  San Jose, CA / languages En, Eo / web http://www.alcyone.com/max/
          USA / icbm 37 20 07 N 121 53 38 W / &tSftDotIotE
             \
            / The quickest way of ending a war is to lose it.
           / George Orwell

- Raw text -


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