Date: Thu, 21 May 1998 11:04:24 +0300 (IDT) From: Eli Zaretskii To: "Peter J. Farley III" cc: djgpp AT delorie DOT com Subject: Re: Possible bash bug in "for x in $path/*x*" In-Reply-To: <35637b2a.6087655@enews.newsguy.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk On Thu, 21 May 1998, Peter J. Farley III wrote: > when there is NOT any file in a directory in the $PATH > which matches *awk*, the syntax "for awk in $path/*awk*" sets the > variable $awk to the value of the path element plus "/*awk*". That's exactly how Bash is supposed to work by default. If you don't want this behavior, set the variable allow_null_glob_expansion. It's all in the docs.