home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.questions
- Path: sparky!uunet!paladin.american.edu!darwin.sura.net!mips!sdd.hp.com!ux1.cso.uiuc.edu!news.cso.uiuc.edu!osiris.cso.uiuc.edu!gordon
- From: gordon@osiris.cso.uiuc.edu (John Gordon)
- Subject: csh foreach question
- Message-ID: <BswB6M.Dxw@news.cso.uiuc.edu>
- Sender: usenet@news.cso.uiuc.edu (Net Noise owner)
- Organization: University of Illinois at Urbana
- Date: Thu, 13 Aug 1992 00:11:08 GMT
- Keywords: csh,foreach
- Lines: 31
-
-
- Given the following script:
- #
- foreach line ( `cat this_script` )
- echo "$line"
- end
-
-
- I would expect the output to be:
-
- #
- foreach line ( `cat this_script` )
- echo "$line"
- end
-
- However, I get:
-
- #
- foreach
- line
- (
- )
- echo
- "$line"
- end
-
- Is this what's supposed to happen? Any help appreciated.
-
- ---
- John Gordon My incredibly witty saying has been
- gordon@osiris.cso.uiuc.edu Politically Corrected into oblivion.
-