home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / unix / question / 10650 < prev    next >
Encoding:
Text File  |  1992-09-02  |  1.1 KB  |  35 lines

  1. Newsgroups: comp.unix.questions
  2. Path: sparky!uunet!pmafire!news.dell.com!natinst.com!cs.utexas.edu!usc!wupost!gumby!yale!yale.edu!jvnc.net!darwin.sura.net!eng.ufl.edu!whale!zzang
  3. From: zzang@whale.uucp (Zhuo Zang[~{j0WA~}])
  4. Subject: What does \!* mean in csh history subst ?
  5. Message-ID: <1992Sep2.173037.16135@eng.ufl.edu>
  6. Sender: news@eng.ufl.edu (Usenet Diskhog System)
  7. Organization: University of Florida
  8. Distribution: usa
  9. Date: Wed, 2 Sep 92 17:30:37 GMT
  10. Lines: 23
  11.  
  12. Hello,
  13. I am confused by the meaning of the
  14. csh history substitution \!* .
  15. the man says it means: take word 1-$ from previou cmd. 
  16. my question is: if the previous cmd have pipes, like
  17. > cat foo.1 | lpr
  18. what is the 1-$ ? if you use:
  19. >more !*
  20. ?: 1-$ is foo.1 or foo.1 |lpr
  21.  
  22. similar question also can be raised when we use the 
  23. semicolon `;' in the previous cmd .
  24. my guess is \!* will ignore whatever after the `|' or `;'
  25. then what can I do if sometimes I really want
  26. \!* to include the stuff after the `|' or `;'
  27.  
  28. Many thanks !
  29.  
  30.  
  31. -- 
  32. Zhuo Zang[~{j0WA~}]
  33. Department of Statistics
  34. University of Florida            Email: zzang@stat.ufl.edu
  35.