Your message dated Thu, 21 Mar 2024 01:42:27 +0100
with message-id <[email protected]>
and subject line Re: Bug#746372: bash: for loop fails when used with particular
condition (syntax error near unexpected token `newline')
has caused the Debian Bug report #746372,
regarding bash: for loop fails when used with particular condition (syntax
error near unexpected token `newline')
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
746372: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=746372
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
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
--- End Message ---
--- Begin Message ---
Version: 5.0-6
On Tue, 29 Apr 2014 14:10:03 +0200 Marco Romano <[email protected]>
wrote:
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)
This issue does not seem to affect version 5.0-6 and later of bash.
$ for (( j=0; j<( $(echo 1) + 2 ); j++ )); do echo foobar; done
foobar
foobar
foobar
Please reopen this bug if you can still replicate this issue.
Regards,
--
Gioele Barabucci
--- End Message ---