Path: utzoo!utgpu!water!watmath!clyde!rutgers!labrea!decwrl!hplabs!hpda!hpesoc1!hpcllla!hpclisp!hpclscu!shankar From: shankar@hpclscu.HP.COM (Shankar Unni) Newsgroups: comp.unix.wizards Subject: Re: Csh/sh bug or feature? Message-ID: <670003@hpclscu.HP.COM> Date: 13 Jan 88 18:09:05 GMT References: <170@sdeggo.UUCP> Organization: HP ITG/ISO Computer Language Lab Lines: 11 / hpclscu:comp.unix.wizards / dave@sdeggo.UUCP (David L. Smith) / 11:56 pm Jan 11, 1988 / Oh yes, this is how it is supposed to work. the `command` syntax evaluates "command" on the spot. It is analogous to the eval command (which performs a complete globbing). So `cat foo` will read foo, and then evaluate the wild cards which were in it. Thus the * gets evaluated right away. On the other hand, setting the var to 'this is *' prevents the * from being evaluated right away, because it is protected by the single quotes. It is evaluated only when you do the echo, because by then it is unprotected by the quotes.