home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / unix / shell / 5179 < prev    next >
Encoding:
Internet Message Format  |  1992-12-29  |  844 b 

  1. Path: sparky!uunet!bcstec!bcsaic!sundry!sdc!cek
  2. From: cek@sdc.boeing.com (Conrad Kimball)
  3. Newsgroups: comp.unix.shell
  4. Subject: Re: quoting in scripts: ksh
  5. Message-ID: <7688@fury.BOEING.COM>
  6. Date: 27 Dec 92 20:00:41 GMT
  7. References: <1992Dec27.032422.14161@xyzoom.info.com>
  8. Distribution: na
  9. Organization: Boeing Computer Services (ESP), Seattle, WA
  10. Lines: 15
  11.  
  12. In article <1992Dec27.032422.14161@xyzoom.info.com> rob@xyzoom.info.com (Rob Lingelbach) writes:
  13.  
  14. [ describes problem passing quoted arguments to commands in a script ]
  15.  
  16. >mg $OPTS $* $FILE | less
  17.  
  18. Try:
  19. mg $OPTS "$@" $FILE | less
  20.  
  21. See the manpage for details on how $* and $@ differ when enclosed in quotes.
  22. -- 
  23. --
  24. Conrad Kimball       | Client Server Tech Services, Boeing Computer Services
  25. cek@sdc.boeing.com   | P.O. Box 24346, MS 7A-35
  26. (206) 865-6410       | Seattle, WA  98124-0346
  27.