home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!mcsun!Germany.EU.net!pki-nbg!hitkw14!smr
- From: smr@hitkw14.pki-nbg.philips.de (S.Riehm)
- Newsgroups: comp.unix.questions
- Subject: Re: ':' line in scripts
- Message-ID: <smr.716471401@hitkw14>
- Date: 14 Sep 92 11:50:01 GMT
- References: <1992Sep11.163325.7096@qcinet.Gwinnett.COM>
- Sender: news@pki-nbg.philips.de
- Lines: 30
-
- dpayton@qcinet.Gwinnett.COM (Doug Payton) writes:
-
- >I've seen, on occasion, scripts that begin with the line
-
- >:
-
- >which, as I recall, is simply 'true'. Sometimes I've seen
-
- >#!/bin/sh
- >:
-
- >...but the ':' is still there.
-
- >What is it's purpose? Does it init the shell to a known state?
-
- If it is the first line of a shell script, on MOST machines, it will
- cause the script to be run by /bin/sh ( or the system's equivalent, is
- here an equivalent? ).
-
- It has worked on all the machines that I have used so far, but I
- believe there are exceptions.
-
- catchya
-
- -----------------------------------------------------------------
- Stephen Riehm Configuration Management _-_|\
- smr@pki-nbg.philips.de Philips Kommunikations Industrie / \
- Work: +49 911 526 2975 N|rnberg, Germany \_.-.*/
- Fax: +49 911 526 2095 "I was there, now I am here!" v
- "My company speaks another language, I CAN'T speak on it's behalf"
-