delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm |
List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT sourceware DOT cygnus DOT com> |
List-Subscribe: | <mailto:cygwin-subscribe AT sourceware DOT cygnus DOT com> |
List-Archive: | <http://sourceware.cygnus.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT sourceware DOT cygnus DOT com> |
List-Help: | <mailto:cygwin-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs> |
Sender: | cygwin-owner AT sourceware DOT cygnus DOT com |
Delivered-To: | mailing list cygwin AT sourceware DOT cygnus DOT com |
Message-ID: | <37E0CCF2.2566@bigfoot.com> |
Date: | Thu, 16 Sep 1999 11:56:50 +0100 |
From: | Keith Starsmeare <kxs AT bigfoot DOT com> |
X-Mailer: | Mozilla 3.01 (X11; I; HP-UX B.10.20 9000/735) |
MIME-Version: | 1.0 |
To: | cygwin AT sourceware DOT cygnus DOT com |
Subject: | Scripts starting with colon |
Why do scripts have to start with #! to be recognised as executable? Scripts can start with just : to mean that it's either a bourne shell script or a bash script depending on what shell you execute the script from. Was this an intentional ommission? There are scripts in the cygwin installation that start with a colon, for example gzexe, but the next line is #!/bin/sh and these files are recognised as being executable. It seems to be the case with cygwin that a file (with UNIX style end of line characters) that starts with : #! is the equivalent of a file that starts #!/bin/sh how confusing. Could this matter be fixed (or added to a list of bugs - possibly mentioned in the FAQ), or is it not considered a bug? Keith -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |