From mboxrd@z Thu Jan 1 00:00:00 1970 Received: by archone.tamu.edu id <18991>; Fri, 18 Oct 1991 15:18:04 -0500 From: Byron Rakitzis To: rc, rsalz@bbn.com Subject: Re: variables in ~ patternlists? Message-Id: <91Oct18.151804cdt.18991@archone.tamu.edu> Date: Fri, 18 Oct 1991 15:18:03 -0500 This is not how patterns work in rc; The only way to get * to match any characters is for it to appear LITERALLY and UNQUOTED. Therefore, only ~ foo.c * will match, not bar='*.c' ~ foo.c $bar The only way to get around this is with an explicit eval statement: eval ~ $1 $foo will present $foo to rc as if it had been rescanned (which it is, actually). I find these quoting rules to be quite simple, actually. Duff explains them quite well in the paper bundled with rc-1.2.