Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 147459 - Konsole share the same history for commands
Summary: Konsole share the same history for commands
Status: RESOLVED CANTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-09-13 08:37 UTC by Armin Mohring
Modified: 2006-09-14 19:02 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Armin Mohring 2006-09-13 08:37:56 UTC
Konsole of KDE 3.5.4. do have the same history. They should have a separate history for entered commands.

Gentoo Base System version 1.12.4
Portage 2.1.1 (default-linux/amd64/2006.0, gcc-4.1.1, glibc-2.4-r3, 2.6.18-rc7 x86_64)
=================================================================
System uname: 2.6.18-rc7 x86_64 AMD Athlon(tm) 64 Processor 3200+
Last Sync: Wed, 13 Sep 2006 03:50:01 +0000
ccache version 2.3 [disabled]
app-admin/eselect-compiler: [Not Present]
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.3
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O2 -pipe -fomit-frame-pointer -m3dnow -mmmx -msse -msse2 -mfpmath=387"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-march=athlon64 -O9 -pipe -fomit-frame-pointer -m3dnow -mmmx -msse -msse2 -mfpmath=387"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks fixpackages metadata-transfer parallel-fetch sandbox sfperms strict"
GENTOO_MIRRORS="http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ http://ftp.leo.org/mirros/gentoo/ http://www.artfiles.org/gentoo.org/ http://mirror.switch.ch/ftp/mirror/gentoo http://ftp.belnet.be/linux/gentoo"
LINGUAS=""
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="amd64 X a52 aac alsa avi berkdb bitmap-fonts cdparanoia cdr cli crypt cups dlloader dri dts dvd dvdr eds elibc_glibc emboss encode foomaticdb fortran ftp gif gpm gstreamer gtk2 imlib input_devices_keyboard input_devices_mouse ipv6 isdnlog java javascript jikes jpeg kde kernel_linux lzw lzw-tiff mp3 mpeg ncurses nls nptl nptlonly opengl pam pcre pdflib perl png pppd python qt qt3 qt4 quicktime readline reflection sdl session spell spl ssl tcpd tiff truetype-fonts type1-fonts unicode usb userland_GNU video_cards_apm video_cards_ark video_cards_ati video_cards_chips video_cards_cirrus video_cards_cyrix video_cards_dummy video_cards_fbdev video_cards_glint video_cards_i128 video_cards_i810 video_cards_mga video_cards_neomagic video_cards_nv video_cards_rendition video_cards_s3 video_cards_s3virge video_cards_savage video_cards_siliconmotion video_cards_sis video_cards_sisusb video_cards_tdfx video_cards_tga video_cards_trident video_cards_tseng video_cards_v4l video_cards_vesa video_cards_vga video_cards_via video_cards_vmware video_cards_voodoo wxGTK xorg xpm xv zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Daniel Gryniewicz (RETIRED) gentoo-dev 2006-09-13 08:39:38 UTC
I'm not a KDE person, but the history on every other terminal is acually in bash, not in the terminal.  Thus, it's a bash problem, not a terminal problem.
Comment 2 Armin Mohring 2006-09-13 08:42:11 UTC
This is what I actually mean.
The bash history is shared between the different konsoles of KDE 3.5.4. (Konsole version 1.6.2.).
Comment 3 Daniel Gryniewicz (RETIRED) gentoo-dev 2006-09-13 08:47:58 UTC
Yes, and there's nothing konsole (or any terminal program) can do about it.  Talk to the bash people.
Comment 4 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-09-13 08:56:52 UTC
As Daniel said, we cannot really "fix" this, it's the way bash works, if you want that changed, ask the bash upstream to change the logging support.
Comment 5 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2006-09-13 09:31:34 UTC
Add
export HISTFILE="/dev/null"
to ~/.bash_profile
Comment 6 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2006-09-14 18:41:45 UTC
Or you can do the following:

1. Write
echo 0 > ~/.bash_histories_count

2. Add

<Code>
[[ -f ~/.bash_hist_count ]] && HISTORIES_COUNT=$(( `cat ~/.bash_hist_count` )) || HISTORIES_COUNT=$(( 0 ))

export HISTFILE=".bash_hist_${HISTORIES_COUNT}"

HISTORIES_COUNT=$(( ${HISTORIES_COUNT} + 1))

echo ${HISTORIES_COUNT} > ~/.bash_histories_count
</Code>

to ~/.bash_profile
Comment 7 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2006-09-14 19:02:38 UTC
Some corrections.

You can omit point 1.

Above code is inconsequent.
Corrected code:
<Code>

[[ -f ~/.bash_histories_count ]] && HISTORIES_COUNT=$(( `cat ~/.bash_histories_count` )) || HISTORIES_COUNT=$(( 0 ))
;
export HISTFILE=".bash_history_${HISTORIES_COUNT}"
;
HISTORIES_COUNT=$(( ${HISTORIES_COUNT} + 1))
;
echo ${HISTORIES_COUNT} > ~/.bash_histories_count

</Code>

Replace semicolons with new-line characters and don't insert new-line characters in other places (This is due to limitations of Bugzilla's code formatting.).