Package: bash
Version: 4.3-7
Severity: important
Dear Maintainer,
the following code fails in Debian Sid:
for (( j=0; j<( $(echo 1) + 2 ); j++ )); do echo foobar; done
The reported error is:
bash: syntax error near unexpected token `newline'
and no output is printed (instead of the string "foobar" repeated for 3 lines)
If there I put a space between "<" and "(" the script run as expected:
for (( j=0; j< ( $(echo 1) + 2 ); j++ )); do echo foobar; done
so the problem might be in "<(" being interpreted as a process substitution...
Kinde regards,
Marco Romano.
-- System Information:
Debian Release: jessie/sid
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 3.13-1-amd64 (SMP w/3 CPU cores)
Locale: LANG=en_GB.utf8, LC_CTYPE=en_GB.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages bash depends on:
ii base-files 7.2
ii dash 0.5.7-4
ii debianutils 4.4
ii libc6 2.18-4
ii libtinfo5 5.9+20140118-1
Versions of packages bash recommends:
ii bash-completion 1:2.1-4
Versions of packages bash suggests:
pn bash-doc <none>
-- no debconf information
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]