-
-
Notifications
You must be signed in to change notification settings - Fork 159
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
~/.local/share/oils/osh_history
interferes with $HISTFILE
#2083
Comments
Hm so you are setting HISTFILE=foo in What about This might be an ordering issue ... also bash does some weird stuff like calling |
Yes, I can confirm So, osh overwrites foo with whatever is in |
Hm OK I want to try to repro this ... |
I can't reproduce this
This needs a better repro in both bash and OSH -- describe the steps, and then describe where OSH differs |
After I exit OSH, and it writes the history file, it seems fine too |
Currently, even after setting osh’s $HISTFILE to a different location (
~/.bash_history
in our case) throughoshrc
, invokinghistory
upon entering an osh lists only the commands stored in the old~/.local/share/oils/osh_history
.At this moment, at least
~/.bash_history
remains intact.If you then invoke
history -a
, however, osh replaces the commands in~/.bash_history
(ie $HISTFILE) with those in~/.local/share/oils/osh_history
, with the result that now both $HISTFILE and thehistory
list are populated with the same commands from the old~/.local/share/oils/osh_history
.The text was updated successfully, but these errors were encountered: