[Bug 1617572] Re: Field splitting is not done correctly

Jarno Suni 1617572 at bugs.launchpad.net
Sat Aug 27 16:39:13 UTC 2016


** Summary changed:

- Word splitting is not done correctly
+ Field splitting is not done correctly

** Description changed:

- $ printf 'a b/c\nd\0' | while IFS=/ read -d $'\0' -r -a a; do printf -- '-%s-\n' ${a[*]}; printf '\n'; done
+ $ printf 'a b/c\nd\0' | while IFS=/ read -d $'\0' -r -a a; do printf -- '-%s-\n' ${a[*]}; done
  -a-
  -b-
  -c-
  -d-
  When expected output is:
  -a b-
  -c
  d-
  
  ProblemType: Bug
  DistroRelease: Ubuntu 16.04
  Package: bash 4.3-14ubuntu1.1
  ProcVersionSignature: Ubuntu 4.4.0-31.50-generic 4.4.13
  Uname: Linux 4.4.0-31-generic x86_64
  NonfreeKernelModules: nvidia_uvm nvidia
  ApportVersion: 2.20.1-0ubuntu2.1
  Architecture: amd64
  CurrentDesktop: XFCE
  Date: Sat Aug 27 16:38:11 2016
  EcryptfsInUse: Yes
  InstallationDate: Installed on 2015-11-21 (279 days ago)
  InstallationMedia: Xubuntu 15.10 "Wily Werewolf" - Release amd64 (20151021)
  SourcePackage: bash
  UpgradeStatus: Upgraded to xenial on 2016-06-24 (63 days ago)

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to bash in Ubuntu.
https://bugs.launchpad.net/bugs/1617572

Title:
  Field splitting is not done correctly

Status in bash package in Ubuntu:
  New

Bug description:
  $ printf 'a b/c\nd\0' | while IFS=/ read -d $'\0' -r -a a; do printf -- '-%s-\n' ${a[*]}; done
  -a-
  -b-
  -c-
  -d-
  When expected output is:
  -a b-
  -c
  d-

  ProblemType: Bug
  DistroRelease: Ubuntu 16.04
  Package: bash 4.3-14ubuntu1.1
  ProcVersionSignature: Ubuntu 4.4.0-31.50-generic 4.4.13
  Uname: Linux 4.4.0-31-generic x86_64
  NonfreeKernelModules: nvidia_uvm nvidia
  ApportVersion: 2.20.1-0ubuntu2.1
  Architecture: amd64
  CurrentDesktop: XFCE
  Date: Sat Aug 27 16:38:11 2016
  EcryptfsInUse: Yes
  InstallationDate: Installed on 2015-11-21 (279 days ago)
  InstallationMedia: Xubuntu 15.10 "Wily Werewolf" - Release amd64 (20151021)
  SourcePackage: bash
  UpgradeStatus: Upgraded to xenial on 2016-06-24 (63 days ago)

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



More information about the foundations-bugs mailing list