This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: [ANNOUNCEMENT] Updated: dash-0.5.9.1-1
- From: Steven Penny <svnpenn at gmail dot com>
- To: cygwin at cygwin dot com
- Date: Sat, 25 Feb 2017 09:08:55 -0800 (PST)
- Subject: Re: [ANNOUNCEMENT] Updated: dash-0.5.9.1-1
- Authentication-results: sourceware.org; auth=none
- References: <ed828046-15d2-6cbe-4e48-c3d72839572e@gmail.com>
On Sat, 25 Feb 2017 11:46:08, cyg Simple wrote:
If *your* script has a dependency to run using *dash* instead of *sh*
then you _must_ use #!/bin/dash anyway.
I think you have a fundamental misunderstanding of what Dash is. Dash is a
minimal shell, similar to the "sh" defined by POSIX:
http://pubs.opengroup.org/onlinepubs/9699919799/utilities/sh.html
So saying "a dependency to run using *dash*" makes about as much sense as saying
"Cygwin has a dependency to run using Cygwin".
And what I _*I*_ don't want dash as /bin/sh? You see not everyone in the
community will agree.
With respect to the community, yes of course you get a say. If the community
doesn’t agree on this we will continue to use Bash. However you do not get a say
with respect to the standard. The POSIX standard specified that /bin/sh is the
shell I have linked above. Bash is a superset of that, so by definition those
extra features are not defined or guaranteed to exist. When writing /bin/sh
scripts, you should be assuming the users /bin/sh only has those features
defined by POSIX. Example:
#!/bin/bash -> script that follows might have Bashisms
#!/bin/dash -> script that follows might have Dashisms (echo -n, local)
#!/bin/sh -> script that follows should be a POSIX script
You can make the suggestion to those using your script to do so otherwise but
forcing dash as /bin/sh worldwide isn't something you can actually do.
Yes we certainly can. Debian and Ubuntu have already done this.
--
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