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

  1. Path: sparky!uunet!mcsun!Germany.EU.net!pki-nbg!hitkw14!smr
  2. From: smr@hitkw14.pki-nbg.philips.de (S.Riehm)
  3. Newsgroups: comp.unix.questions
  4. Subject: Re: ':' line in scripts
  5. Message-ID: <smr.716471401@hitkw14>
  6. Date: 14 Sep 92 11:50:01 GMT
  7. References: <1992Sep11.163325.7096@qcinet.Gwinnett.COM>
  8. Sender: news@pki-nbg.philips.de
  9. Lines: 30
  10.  
  11. dpayton@qcinet.Gwinnett.COM (Doug Payton) writes:
  12.  
  13. >I've seen, on occasion, scripts that begin with the line
  14.  
  15. >:
  16.  
  17. >which, as I recall, is simply 'true'.  Sometimes I've seen
  18.  
  19. >#!/bin/sh
  20. >:
  21.  
  22. >...but the ':' is still there.
  23.  
  24. >What is it's purpose?  Does it init the shell to a known state?
  25.  
  26. If it is the first line of a shell script, on MOST machines, it will
  27. cause the script to be run by /bin/sh ( or the system's equivalent, is
  28. here an equivalent? ).
  29.  
  30. It has worked on all the machines that I have used so far, but I
  31. believe there are exceptions.
  32.  
  33. catchya
  34.  
  35. -----------------------------------------------------------------
  36. Stephen Riehm        Configuration Management       _-_|\ 
  37. smr@pki-nbg.philips.de    Philips Kommunikations Industrie  /     \
  38. Work: +49 911 526 2975    N|rnberg, Germany          \_.-.*/
  39. Fax:  +49 911 526 2095    "I was there, now I am here!"           v 
  40. "My company speaks another language, I CAN'T speak on it's behalf"
  41.