bug-bash
[Top][All Lists]
Advanced

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

empty lines at the end of quoted command subsitutions missing


From: koenig
Subject: empty lines at the end of quoted command subsitutions missing
Date: Fri, 23 Jul 2010 10:16:06 +0200 (CEST)

Configuration Information [Automatically generated, do not change]:
Machine: amd64-linux
OS: sles10, suse 11.1, suse 11.3
Compiler: gcc
Compilation CFLAGS:  -DPROGRAM='bash' -DCONF_HOSTTYPE='amd64-linux' 
-DCONF_OSTYPE='suse10les' -DCONF_MACHTYPE='x86_64-unknown-linux-gnu' 
-DCONF_VENDOR='unknown' 
-DLOCALEDIR='/scr/os2-sles10/flebbe/bash-3.2.25-3/PREINSTALL//usr/local//share/locale'
 -DPACKAGE='bash' -DSHELL -DHAVE_CONFIG_H   -I.  -I. -I./include -I./lib   -O2 
-D_LARGE_FILES -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
uname output: Linux atuin 2.6.27.45-0.1-default #1 SMP 2010-02-22 16:49:47 
+0100 x86_64 x86_64 x86_64 GNU/Linux
Machine Type: x86_64-unknown-linux-gnu

Bash Version: 3.2
Patch Level: 25
Release Status: release

Description:
empty line(s) at the end of quoted command subsitutions are missing:

example:

        # echo "$( echo ; echo a ; echo "b" ; echo "" ; echo "" ; echo ) " ; 
echo done

        a
        b 
        done
        # 

while there should be two empty lines between "b" and "done" like this :

        # echo "$( echo ; echo a ; echo "b" ; echo "" ; echo "" ; echo ) " ; 
echo done

        a
        b 
        
        
        done
        # 


bash 4.1.7(1)-release from opensuse 11.3 gives the same output,
but Im still mostly bash3-based, so a fix for this in bash3 is welcome too;)


Repeat-By:
        echo "$( echo ; echo a ; echo "b" ; echo "" ; echo "" ; echo ) " ; echo 
done

-- 
Vorstand/Board of Management:
Dr. Bernd Finkbeiner, Dr. Roland Niemeier, 
Dr. Arno Steitz, Dr. Ingrid Zech
Vorsitzender des Aufsichtsrats/
Chairman of the Supervisory Board:
Michel Lepert
Sitz/Registered Office: Tuebingen
Registergericht/Registration Court: Stuttgart
Registernummer/Commercial Register No.: HRB 382196 





reply via email to

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