Package: bash
Version: 3.1dfsg-8
Severity: normal

$ bash -o posix -c 'a() { env; f=y; }; unset f; f=x a; env' | grep ^f=
f=x
f=y
$

The variable f is still exported after f returns which is
counter-intuitive and possibly a POSIX infringement.

-- System Information
Debian Release: 3.1
Kernel Version: Linux gondolin 2.6.17-rc4 #1 SMP PREEMPT Wed May 17 17:28:00 
EST 2006 i686 GNU/Linux

Versions of the packages bash depends on:
ii  base-files     3.1.2          Debian base system miscellaneous files
ii  libc6          2.3.2.ds1-22sa GNU C Library: Shared libraries and Timezone
ii  libncurses5    5.4-4          Shared libraries for terminal handling
ii  passwd         4.0.3-31sarge5 change and administer password and group dat



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to