home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / unix / shell / 5109 < prev    next >
Encoding:
Text File  |  1992-12-21  |  849 b   |  28 lines

  1. Newsgroups: comp.unix.shell
  2. Path: sparky!uunet!cs.utexas.edu!uwm.edu!ux1.cso.uiuc.edu!news.iastate.edu!john
  3. From: john@iastate.edu (John Hascall)
  4. Subject: foreach in csh alias (possible?)
  5. Message-ID: <BzH1qo.2yt@news.iastate.edu>
  6. Sender: news@news.iastate.edu (USENET News System)
  7. Organization: Iowa State University, Ames, IA
  8. Date: Fri, 18 Dec 1992 20:18:23 GMT
  9. Lines: 17
  10.  
  11. Well, I Read The Fine FAQ, but no mention of this, and I dinked with
  12. it for the better part of an evening, but no luck.  So, is something like
  13. this:
  14.  
  15.      alias doit 'foreach xx (`list-o-xxs`) \\
  16.           setenv $xx /foo/$xx \\
  17.         end'
  18.  
  19. possible?
  20.  
  21. Many thanks,
  22. John
  23. -- 
  24. John Hascall                   ``An ill-chosen word is the fool's messenger.''
  25. Systems Software Engineer
  26. Project Vincent
  27. Iowa State University Computation Center  +  Ames, IA  50011  +  515/294-9551
  28.