Open slycordinator opened 10 months ago
According to https://hyperpolyglot.org/shell#resizable-array-literal POSIX shells have the ability to
nums=(1 2 3 4)
${#nums[@]}
${nums[0]}
nums[1]=5
${nums[@]:1:2}
c=(${a[@]} ${b[@]})
for i in ${nums[@]} do echo $i done
But each of these all will result in syntax errors in a POSIX shell, because arrays aren't defined in posix.
According to https://hyperpolyglot.org/shell#resizable-array-literal POSIX shells have the ability to
nums=(1 2 3 4)
${#nums[@]}
${nums[0]}
nums[1]=5
${nums[@]:1:2}
c=(${a[@]} ${b[@]})
But each of these all will result in syntax errors in a POSIX shell, because arrays aren't defined in posix.