In article <3C3B5DBD.217B4B65@aaa.com>, Jan-Erik S�derholm wrote: [[.. snip a bunch of good stuff ..]] > >And if foo is some program you have written, you'll get exactly >"*.c *.x", and it's up to foo to do whatever it want with it... > Which confirms that the VMS/DCL interpretation of wildcards is as inconsistant as the programmer(s) care to make it. "directory entries", "related names", or "something (anything) else". And, that there is *NO*WAY* -- from inspection of the command-line only -- to determine which interpretation applies, to which instance. Specific knowledge of the particular context is required. The semantics of the wildcard construct depend utterly on the context in which it is employed. For commands bundled with VMS or built into DCL, there has been effort made to classify various instances of wildcard availability into groups, and to ensure that within those groups that the wildcard behaves in the same manner. The authors *did* do a very good job of limiting the number of distinct behavior groups, and using 'intuitively obvious' selection of which behvior was to apply in various contexts.as to apply in various contexts. User-written commands _can_, but DO NOT HAVE TO employ the same semantics as *any* of those employed by system-supplied commnds. "foo *.x *.y" is free to use one of the strings '*.x' or '*.y' as, for example, a pattern of text to search for, in the list of files represented by the other string.