Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!akgua!mcnc!decvax!cca!ima!haddock!johnl From: johnl@haddock.UUCP Newsgroups: net.unix Subject: Re: An odd difference between 'cat file' - (nf) Message-ID: <154@haddock.UUCP> Date: Wed, 18-Apr-84 23:40:41 EST Article-I.D.: haddock.154 Posted: Wed Apr 18 23:40:41 1984 Date-Received: Sun, 22-Apr-84 08:29:14 EST Lines: 19 #R:opus:-36700:haddock:16700020:000:754 haddock!johnl Apr 18 11:47:00 1984 > The reason that ``cat xyz*'' is expanded and ``cat is not has to do with the C getchar() call. cat takes any >arguments on the command line that don't start with a ``-'', >expands them, and interprets them as filenames. However, if >you use the ``<'' before the filename, the filename is actually >used as stdin and the filename is not put on the command line. >Therefore, cat thinks that you are typing in somthing from the >terminal. Hope this helps. I wish that people who don't have the faintest idea what they're talking about would avoid "help" like this. Read the manual entry on the shell. (Sorry if this seems rude, but this is without a doubt the wrongest explanation of anything that I've ever seen.) John Levine, ima!johnl