[ANNOUNCEMENT] Updated: dash-

Steven Penny svnpenn@gmail.com
Thu Feb 23 23:44:00 GMT 2017

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:


Yes Bash even in POSIX mode handles them:

    $ bash --posix -c 'z=(2 3 4); echo ${z[2]}'

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

More information about the Cygwin mailing list