bug-bash
[Top][All Lists]
Advanced

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

set and type garbles functions that set v=$'\001'


From: Bo Ørsted Andresen
Subject: set and type garbles functions that set v=$'\001'
Date: Thu, 3 May 2007 23:33:15 +0200
User-agent: KMail/1.9.6

Configuration Information [Automatically generated, do not change]:
Machine: i686
OS: linux-gnu
Compiler: i686-pc-linux-gnu-gcc
Compilation 
CFLAGS:  -DPROGRAM='bash' -DCONF_HOSTTYPE='i686' -DCONF_OSTYPE='linux-gnu' 
-DCONF_MACHTYPE='i686-pc-linux-gnu' -DCONF_VENDOR='pc' 
-DLOCALEDIR='/usr/share/locale' -DPACKAGE='bash' -DSHELL -DHAVE_CONFIG_H   -I.  
-I. -I./include -I./lib   -march=pentium-m -Os -pipe
uname output: Linux BA 2.6.20-suspend2-r4 #1 PREEMPT Tue Apr 24 08:51:12 CEST 
2007 i686 Intel(R) Pentium(R) M processor 1600MHz GenuineIntel GNU/Linux
Machine Type: i686-pc-linux-gnu

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

Description:
    If a function f set a variable v to $'\001' then type f or set
    add a second \001 in it's output. Hence v becomes $'\001\001'.
    You'll need to use a hex viewer (in the example xxd) to see it.

Repeat-By:
    f() {
        v=$'\001'
    }
    type f | xxd




reply via email to

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