home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / unix / question / 10966 < prev    next >
Encoding:
Internet Message Format  |  1992-09-11  |  845 b 

  1. Path: sparky!uunet!gatech!emory!gwinnett!qcinet!dpayton
  2. From: dpayton@qcinet.Gwinnett.COM (Doug Payton)
  3. Newsgroups: comp.unix.questions
  4. Subject: ':' line in scripts
  5. Message-ID: <1992Sep11.163325.7096@qcinet.Gwinnett.COM>
  6. Date: 11 Sep 92 16:33:25 GMT
  7. Organization: Quality Consultants, Inc.
  8. Lines: 19
  9.  
  10. I've seen, on occasion, scripts that begin with the line
  11.  
  12. :
  13.  
  14. which, as I recall, is simply 'true'.  Sometimes I've seen
  15.  
  16. #!/bin/sh
  17. :
  18.  
  19. ...but the ':' is still there.
  20.  
  21. What is it's purpose?  Does it init the shell to a known state?
  22. -- 
  23. Doug Payton -- Internet:  dpayton@qcinet.gwinnett.com
  24.  
  25. -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  26.           An open mind is good, but, like an open window,
  27.            it still needs a screen to keep the bugs out.
  28. -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  29.