Tugger the SLUGger!SLUG Mailing List Archives

Re: [SLUG] my next stupid question


On Tue, Jul 03, 2001 at 12:52:33PM +0800, Malcolm Tredinnick wrote:
> A fairly common idiom for this is:
> 
> fileList=`echo *.TXT`
> if [ "$fileList" != '*' ]; then
>     ...(insert other stuff here)
> fi

Doh! I didn't actually run this, obviously. The 'if' clause should be

	if [ "$fileList" != '*.TXT' ]; then (etc...)

Malcolm

-- 
No one is listening until you make a mistake.