Summary: | Konsole share the same history for commands | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Armin Mohring <mohringarmin> |
Component: | [OLD] KDE | Assignee: | Gentoo KDE team <kde> |
Status: | RESOLVED CANTFIX | ||
Severity: | normal | ||
Priority: | High | ||
Version: | 2006.0 | ||
Hardware: | AMD64 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Armin Mohring
2006-09-13 08:37:56 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. 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.). Yes, and there's nothing konsole (or any terminal program) can do about it. Talk to the bash people. 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. Add export HISTFILE="/dev/null" to ~/.bash_profile 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 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.). |