Package: bash
Version: 4.4-5
Severity: normal

Dear Maintainer,

I noticed a change in how here strings using a bash variable effect consecutive
spaces compared to earlier debian releases. Consider the following example:

    #!/bin/bash
    info='a  b'
    /bin/cat - <<< $info
    /bin/cat - <<< "$info"
    /bin/echo $info
    /bin/echo "$info"

The result is:

    a  b
    a  b
    a b
    a  b

However, on Debian 8, and also various other systems I have at hand, the output 
is:

    a b
    a  b
    a b
    a  b

I consider the result I get on Debian 9 to be wrong, but bascially I'm puzzled
about the difference. To me it looks like being related to the different bash
versions, with the newer version being broken, but I might be wrong, though.

Best,


André

-- System Information:
Debian Release: 9.1
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.9.0-3-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages bash depends on:
ii  base-files   9.9+deb9u1
ii  dash         0.5.8-2.4
ii  debianutils  4.8.1.1
ii  libc6        2.24-11+deb9u1
ii  libtinfo5    6.0+20161126-1

Versions of packages bash recommends:
ii  bash-completion  1:2.1-4.3

Versions of packages bash suggests:
pn  bash-doc  <none>

-- no debconf information

Reply via email to