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: Thu, 23 Feb 2017 15:44:54 -0800 (PST)
- Subject: Re: [ANNOUNCEMENT] Updated: dash-0.5.9.1-1
- Authentication-results: sourceware.org; auth=none
- References: <74aa0c8b-c268-dbd4-88b7-cda78186f321@SystematicSw.ab.ca>
On Thu, 23 Feb 2017 12:59:27, Brian Inglis wrote:
Some people may continue to need or prefer using bash in POSIX mode.
You might know this already, but "Bash in POSIX mode" is not quite POSIX. For
example, arrays are not defined by POSIX:
http://mywiki.wooledge.org/Bashism#Arrays
Yes Bash even in POSIX mode handles them:
$ bash --posix -c 'z=(2 3 4); echo ${z[2]}'
4
Dash rightfully does not handle them:
$ dash -c 'z=(2 3 4); echo ${z[2]}'
dash: 1: Syntax error: "(" unexpected
--
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