Ah!!! Actually, this does work,
$ simon=( $( ls -1 /usr ) )
$ echo ${#simon[@]}
8
$ echo ${simon[@]}
bin games include lib local sbin share src
This will still cause scripts in the wild to break. But at least there's
a workaround.
Simon
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1760358
Title:
Bash read into array is not working
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/bash/+bug/1760358/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs