bug-bash
[Top][All Lists]
Advanced

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

LF becomes BACKSLASH LF in 'declare -p'


From: William Park
Subject: LF becomes BACKSLASH LF in 'declare -p'
Date: Thu, 30 Jun 2005 23:10:25 -0400

Configuration Information [Automatically generated, do not change]:
Machine: i686
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS:  -DPROGRAM='bash' -DCONF_HOSTTYPE='i686' 
-DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i686-pc-linux-gnu' 
-DCONF_VENDOR='pc' -DLOCALEDIR='/usr/local/share/locale' -DPACKAGE='bash' 
-DSHELL -DHAVE_CONFIG_H  -I.  -I. -I./include -I./lib   -g -O2
uname output: Linux node1 2.6.12-smp #6 SMP Tue Jun 28 00:07:00 EDT 2005 i686 
unknown unknown GNU/Linux
Machine Type: i686-pc-linux-gnu

Bash Version: 3.0
Patch Level: 0
Release Status: release

Description:
        'declare -p' adds backslash (\) in front of newline.  When this
        is fed back, the newline disappears.  Should this happen?

Repeat-By:
        0 node1:~$ a='11
        > 22'
        0 node1:~$ declare -p a
        declare -- a="11\
        22"

        'declare -p' supposed to print stuffs that can be fed back.  So,
        when it is fed back, the newline disappears.

        0 node1:~$ declare b="11\
        > 22"
        0 node1:~$ declare -p b
        declare -- b="1122"





reply via email to

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