Public bug reported:

This issue is found in the Bionic Beaver (Ubuntu 18) beta.

How it should work (e.g. on Xenial)
-----------------------------------

$ read -a simon <<< $( ls -1 /usr )
$ echo ${#simon[@]}
9
$ echo ${simon[@]}
bin games include lib local sbin share src var

How it works (wrongly) on Bionic
--------------------------------
$ read -a simon <<< $( ls -1 /usr )
$ echo ${#simon[@]}
1
$ echo ${simon[@]}
bin

Release
-------
Description:    Ubuntu Bionic Beaver (development branch)
Release:        18.04

Package Version
---------------
Installed: 4.4.18-1ubuntu1

** Affects: bash (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: array bash bionic read

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to bash in Ubuntu.
https://bugs.launchpad.net/bugs/1760358

Title:
  Bash read into array is not working

Status in bash package in Ubuntu:
  New

Bug description:
  This issue is found in the Bionic Beaver (Ubuntu 18) beta.

  How it should work (e.g. on Xenial)
  -----------------------------------

  $ read -a simon <<< $( ls -1 /usr )
  $ echo ${#simon[@]}
  9
  $ echo ${simon[@]}
  bin games include lib local sbin share src var

  How it works (wrongly) on Bionic
  --------------------------------
  $ read -a simon <<< $( ls -1 /usr )
  $ echo ${#simon[@]}
  1
  $ echo ${simon[@]}
  bin

  Release
  -------
  Description:  Ubuntu Bionic Beaver (development branch)
  Release:      18.04

  Package Version
  ---------------
  Installed: 4.4.18-1ubuntu1

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/bash/+bug/1760358/+subscriptions

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to     : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to