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

Reply via email to