Skip to main content
5 events
when toggle format what by license comment
Nov 17, 2021 at 15:32 history edited AdminBee CC BY-SA 4.0
Mention ksh variant that supports lower-case "-a", as mentioned by Stéphane Chazelas
Nov 17, 2021 at 15:28 comment added AdminBee @StéphaneChazelas I see, thank you. I will add a mention of that in the answer.
Nov 17, 2021 at 15:24 comment added Stéphane Chazelas It looks like the beta ksh93v- version of ksh93 and on which was based the (now discontinued) ksh2020 added support for -a as an alias for -A in 2014 for compatibility with bash. So that may be the version of ksh the OP has on their "lower" environment. All other versions / clones / variants of ksh, zsh and yash use read -A. bash chose -a instead of -A even though it otherwise copied the clunky array design of ksh something like 13 years after it was introduced by ksh.
Nov 17, 2021 at 15:20 vote accept Pat
Nov 17, 2021 at 15:09 history answered AdminBee CC BY-SA 4.0