in reply to glob pattern matching
There's a difference however, if you specify a wildcard that doesn't match anything:$ echo $SHELL # yes, this is important! /bin/bash $ ls foo1 foo2 foo3 $ echo foo* foo1 foo2 foo3 $ echo foo foo
This is because glob() uses csh semantics:$ echo bar* bar* $ perl -e 'print glob("bar*")' $
$ csh % ls foo1 foo2 foo3 % echo bar* echo: No match. % echo bar* echo: No match. % perl -e 'print glob("bar*")' %
|
|---|