Possible bug in Bash?: foo() { echo "${var[0]}"; }; var=(bar baz) foo – unix.stackexchange.com

OS: Ubuntu 16.04.3 Shell: Bash 4.3.48 I know that is possible to temporarily change the content of a variable as in var=value command, being probably IFS= read -r var the most notable case of this. ...

from Hot Questions - Stack Exchange OnStackOverflow
via Blogspot

Share this

0 Comment to "Possible bug in Bash?: foo() { echo "${var[0]}"; }; var=(bar baz) foo – unix.stackexchange.com"