| Summary: | Bash doesn't append to history after each command | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | lnie <lnie> | ||||
| Component: | bash | Assignee: | Ondrej Oprala <ooprala> | ||||
| Status: | CLOSED NOTABUG | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
| Severity: | unspecified | Docs Contact: | |||||
| Priority: | unspecified | ||||||
| Version: | 20 | CC: | admiller, crobinso, extras-orphan, jonathan, kzak, mluscon, ooprala, ovasik, rvokal, tsmetana, virt-maint | ||||
| Target Milestone: | --- | ||||||
| Target Release: | --- | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2014-06-24 12:52:50 UTC | Type: | Bug | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Attachments: |
|
||||||
|
Description
lnie
2013-10-31 05:10:07 UTC
gnome-applet-vm is not the correct component, please re-assign Oh, it's probably because the current session is still running and shell does not save the history yet. Don't forget that su(1) starts a new session, but does not end the previous -- see for example "ps auf". Anyway, it's not related to su(1). Re-assigning. still with f20-beta-RC2 still occurs with f20-final-TC1 (In reply to lnie from comment #4) > still occurs with f20-final-TC1 Still persists in f20-final-TC5. Really a big problem for those who used to using "up"+"down" keys,or "hostory"command ,or"ctrl+r". It seems that the system try to remember things optionally, for example, if I do "yum install xchat",and "yum install libvirt",it may only able to remember doing "yum install xchat" after "su" Hi, and thanks for the report. I'd like to see your results of the "printenv" command (when logged in as root, ofc). Sure,the output is attached Created attachment 897056 [details]
output
Sorry for the late reply. There are two things affecting this behaviour. Firstly, make sure "shopt -o histappend" is somewhere in one of your bashrc files (though it should be on by default) the behaviour you want can then be achieved by doing this (again, best to have it in your rc files somewhere): # PROMPT_COMMAND='history -a' With this set, do you still experience the problem? (In reply to Ondrej Oprala from comment #9) > Sorry for the late reply. > > There are two things affecting this behaviour. > Firstly, make sure "shopt -o histappend" is somewhere in one of your bashrc > files (though it should be on by default) > the behaviour you want can then be achieved by doing this (again, best to > have it in your rc files somewhere): > # PROMPT_COMMAND='history -a' > > With this set, do you still experience the problem? The problem is gone,thanks for your helpful information Glad to hear it. |