Configuration Information [Automatically generated, do not change]:
Machine: i586
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='i586'
-DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i586-mandriva-linux-gnu'
-DCONF_VENDOR='mandriva' -DLOCALEDIR='/usr/share/locale'
-DPACKAGE='bash' -DSHELL -DHAVE_CONFIG_H -I. -I.. -I../include
-I../lib -O2 -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
-fomit-frame-pointer -march=i586 -mtune=generic -fasynchronous-unwind-tables
uname output: Linux beta2wei 2.6.17-11mdv #1 SMP Thu Feb 22 07:15:12 EST
2007 i686 Intel(R) Pentium(R) 4 CPU 2.00GHz GNU/Linux
Machine Type: i586-mandriva-linux-gnu
Bash Version: 3.1
Patch Level: 17
Release Status: release
Description:
Please see mandriva bugreport for a more detailed explanation
with examples at: http://qa.mandriva.com/show_bug.cgi?id=21708
The problem is that bash always executes the command at the prompt
when closing the terminal window.
Repeat-By:
Open up a terminal emulator,
(i use konsole for that, but it works also with rxvt)
use "su" to get root. Enter a command, which is normally
only available to root (i used rpmdrake for that)
DO NOT press enter, but quit the terminal by clicking
on the exit button.
The command which was at the prompt will be executed.
Alternative method:
create a text file with a command, but NO return at the end.
echo -n ls > testfile
chmod 700 testfile
./testfile
you'll find your command has been executed.
Fix:
_______________________________________________
Bug-bash mailing list
Bug-bash@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-bash