Mail Archives: djgpp/1998/10/28/03:55:44
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 -