bash/set - bad expansion for function while used as input
From:
Stanislav Brabec
Subject:
bash/set - bad expansion for function while used as input
Date:
Wed, 20 Dec 2000 18:31:36 +0100
User-agent:
Mutt/1.2.5i
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-gnuname output: Linux
utx 2.4.0-test10 #29 Čt pro 7 11:03:49 CET 2000 i686 unknown
Machine Type: i686-pc-linux-gnu
Bash Version: 2.04
Patch Level: 0
Release Status: release
Description:
set [--abefhkmnptuvxBCHP] [-o option] [arg ...]
Without options, the name and value of each shell variable
are displayed in a format that can be reused as input.
Included small script demonstrates it's not true.
Repeat-By:
--------------
#! /bin/bash
function bad_func()
{
echo `echo This should not be printed!`
}
set >bad_func_dump
. bad_func_dump 2>/dev/null
--------------
Fix:
--
Stanislav Brabec