[ale] Q: Bash: test for existence of any file matching a glob pattern.

Fletch fletch at phydeaux.org
Sun Aug 8 17:24:50 EDT 2004

Of course if you were using zsh then you could just use:

if [[ -z "$( print *.h(N) )" ]] ; then
  print no dot h files . . .
  frobnicate *.h

The "(N)" suffix turns on nullglob for a single expansion.

Fletch                | "If you find my answers frightening,       __`'/|
fletch at phydeaux.org   |  Vincent, you should cease askin'          \ o.O'
                      |  scary questions." -- Jules                =(___)=
                      |                                               U

More information about the Ale mailing list