www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/10/28/03:55:44

Date: Wed, 28 Oct 1998 08:55:10 +0000 (GMT)
From: George Foot <george DOT foot AT merton DOT oxford DOT ac DOT uk>
To: djgpp AT delorie DOT com
Subject: Re: /? command line args being altered by DJGPP
In-Reply-To: <36365445.4233A837@alcyone.com>
Message-ID: <Pine.OSF.4.05.9810280851340.7773-100000@sable.ox.ac.uk>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com

On Tue, 27 Oct 1998, Erik Max Francis wrote:

> 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).

bash does:

    ~$ echo ccc*
    ccc*

Things like csh and tcsh just don't run the command, though, as
you said.

-- 
george DOT foot AT merton DOT oxford DOT ac DOT uk

xu do tavla fo la lojban  --  http://xiron.pc.helsinki.fi/lojban/lojban.html

- Raw text -


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