This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Newbie Questions
- From: Mike Rushton <mrushton at ptd dot net>
- To: cygwin at cygwin dot com
- Date: Wed, 05 Feb 2014 16:44:28 -0500
- Subject: Re: Newbie Questions
- Authentication-results: sourceware.org; auth=none
- References: <1898639722 dot 6893470 dot 1391541591920 dot JavaMail dot root at ptd dot net> <52F153AE dot 5080704 at gmail dot com> <52F28215 dot 5030801 at ptd dot net> <52F28330 dot 6060101 at cygwin dot com> <52F2AA5D dot 4000000 at etr-usa dot com>
Right ... the extension is a windows thing.
Most of the bourne shell scripts i have come across have no extension.
Some have the Shebang line ... while others don't have it.
I am still in the planing stages ... I am not sure if I am going to use
an extension or not.
It might be a good idea to use .sh and then you would know that it is a
script.
On 2/5/2014 4:17 PM, Warren Young wrote:
On 2/5/2014 11:30, Larry Hall (Cygwin) wrote:
On 2/5/2014 1:25 PM, Mike Rushton wrote:
does cygwin have a preferred extension for scripts ?
No, the extension can be whatever you like. By convention, bash/sh
scripts
with extensions use ".sh".
I'd bet there are more Bourne shell scripts in the world with no
extension at all than .sh.
For the most part, Mike, POSIXy systems like Cygwin and Linux use
magic bytes[1] and the shebang line[2] to figure out what is contained
in a given file, rather than the file name.
[1] http://goo.gl/5F9P33
[2] http://goo.gl/XjINSi
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple