Gentoo Archives: gentoo-user

From: Willie Wong <wwong@××××××××××××××.edu>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Search filesystem with a wildcard
Date: Sun, 27 Feb 2011 11:30:43
Message-Id: 20110227112919.GA29506@math.princeton.edu
In Reply to: Re: [gentoo-user] Search filesystem with a wildcard by Stroller
1 On Sun, Feb 27, 2011 at 06:52:36AM +0000, Stroller wrote:
2 > AIUI using `find /my/folder -name foo*.txt` (i.e. unquoted) the shell will pass the * to find if it can't expand it itself.
3
4 Not necessarily true.
5
6 On bash if you set the 'nullglob' option, if the shell can't find the
7 file the word will be removed. If you set the 'failglob' character,
8 the command will quit with an error if the shell can't complete the
9 path expansion.
10
11 I expect there to be similar options in other shells.
12
13 W
14 --
15 Willie W. Wong wwong@××××××××××××××.edu
16 Data aequatione quotcunque fluentes quantitae involvente fluxiones invenire
17 et vice versa ~~~ I. Newton