bug-bash
[Top][All Lists]
Advanced

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

2.05b drops leading TABs from Vars in here-docs


From: heiner
Subject: 2.05b drops leading TABs from Vars in here-docs
Date: Fri, 25 Apr 2003 20:37:11 +0200 (CEST)

Configuration Information [Automatically generated, do not change]:
Machine: i586
OS: linux
Compiler: gcc -I/usr/src/packages/BUILD/bash-2.05b 
-L/usr/src/packages/BUILD/bash-2.05b/../readline-4.3
Compilation CFLAGS:  -DPROGRAM='bash' -DCONF_HOSTTYPE='i586' 
-DCONF_OSTYPE='linux' -DCONF_MACHTYPE='i586-suse-linux' -DCONF_VENDOR='suse' 
-DSHELL -DHAVE_CONFIG_H  -I.  -I. -I./include -I./lib  -O2 -march=i586 
-mcpu=i686 -fmessage-length=0 -D_GNU_SOURCE -Wall -pipe -g
uname output: Linux mepc 2.4.19-4GB #1 Fri Sep 13 13:14:56 UTC 2002 i686 unknown
Machine Type: i586-suse-linux

Bash Version: 2.05b
Patch Level: 0
Release Status: release

Description:
        When expanding variables in here-documents at the beginning
        of a line, a leading TAB character is dropped.
        If the var expansing is not at the start of the line,
        the TAB does not get dropped.
        Version 2.05 does not exhibit this bug.

Repeat-By:
        ee="    xy"             # contains leading TAB character
        cat << EOF | od -c
        $ee
        EOF
        # the TAB character is missing from the here document

-- 
Heiner Marxen           address@hidden




reply via email to

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