bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Arithmetic expressions and parameters with newlines breaks


From: Jan Schampera
Subject: Arithmetic expressions and parameters with newlines breaks
Date: Sun, 1 Jul 2007 23:46:06 +0200

Configuration Information [Automatically generated, do not change]:
Machine: i486
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS:  -DPROGRAM='bash' -DCONF_HOSTTYPE='i486'
-DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i486-pc-linux-gnu'
-DCONF_VENDOR='pc' -DLOCALEDIR='/usr/share/locale' -DPACKAGE='bash'
-DSHELL -DHAVE_CONFIG_H   -I.  -I../bash -I../bash/include
-I../bash/lib   -g -O2 uname output: Linux mainserver 2.6.18-4-486 #1
Wed May 9 22:23:40 UTC 2007 i686 GNU/Linux Machine Type:
i486-pc-linux-gnu

Bash Version: 3.1
Patch Level: 17
Release Status: release

Description:
        Parameters inside arithmetic contexts like $(()) and (()) break
        the expression parsing when they contain a newline

Repeat-By:
        $ foo="12
        > 34"

        $ echo $((foo))
        bash: 12
        34: syntax error in expression (error token is "34")

        $ ((foo))
        bash: ((: 12
        34: syntax error in expression (error token is "34")

Fix:
        <none>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]