home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.xenix.sco
- Path: sparky!uunet!uunet.ca!canrem!telly!robohack!ve3ied!bduncan
- From: bduncan@ve3ied.UUCP (Bill Duncan)
- Subject: Re: shell scripts starting with #!/bin/sh
- Organization: TFMCS
- Date: Mon, 20 Jul 1992 22:37:02 GMT
- Message-ID: <1992Jul20.223702.1924@ve3ied.UUCP>
- References: <9207140914.AA04480@dynamix.com>
- Lines: 18
-
- In article <9207140914.AA04480@dynamix.com> david@dynamix.com (David L. Jarvis) writes:
- >Also ...
- >
- >> in SYSTEM V, the first line either has a : or it doesn't.
- >>
- >> If it does, it is a bourne shell script (sh) if it doesn't, it is a csh
- >> script.
- >
- >this doesn't sound right to me ... I ran scripts without the : for years
- >and /bin/sh was always the shell used ... it would seem to me that without
- >the : indicates to use the current shell as the interpreter, but thats just
- >my guess ... (perhaps the : just says that if you're using csh that sh
- >should be used instead?)
- >
-
- You're right on the last count. The Bourne shell will try to execute anything.
- See Chip's notes. Under Xenix it is a csh hack, and the hack is to execute
- /bin/sh if it sees the ":" on the first line.
-