Skip to content

Set-PSReadlineOption -HistorySaveStyle SaveAtExit not working on Windows 10 build 10162 #262

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

Open
rkeithhill opened this issue Jul 5, 2015 · 9 comments
Labels
Issue-Bug It either shouldn't be doing this or needs an investigation.

Comments

@rkeithhill
Copy link
Contributor

This option hasn't been working in the last couple of Windows 10 builds dating back to build 10130 I think. I can workaround this for now by not using this option and letting it save incrementally.

@gwojan
Copy link

gwojan commented Jul 5, 2015

I don't think it works correctly on Windows 7 either. I recently started using -SaveAtExit with the latest builds and my history wasn't saved at all.

@rkeithhill
Copy link
Contributor Author

@gwojan Thanks for confirming the issue.

@lzybkr lzybkr added the Issue-Bug It either shouldn't be doing this or needs an investigation. label Nov 12, 2017
@daxian-dbw
Copy link
Member

@rkeithhill Can you please confirm if this is still an issue with the latest PSReadLine module?

@ghost
Copy link

ghost commented Apr 13, 2022

This issue is closed because it has been marked as requiring author feedback but has not had any activity for 7 days. If you think the issue is still relevant, please reopen and provide your feedback.

@ghost ghost closed this as completed Apr 13, 2022
@rkeithhill
Copy link
Contributor Author

@daxian-dbw AFAICT nothing is saved in the history file if you use SaveAtExit. 🤷‍♂️

@daxian-dbw
Copy link
Member

@rkeithhill Thanks for checking and confirming.

@puxu-msft
Copy link

same issue, 2.2.5 and win11.

@Shuangcheng-Ni
Copy link

I've tested this command with PowerShell 5.1 and 7.3 on Windows 11. Is this the expected behavior?

PowerShell Version \ exit by exit command close console window
5.1 not save not save
7.3 not save save

@StevenBucher98
Copy link
Collaborator

I tested this and have had the following behaviors with PSReadline 2.3.3 and Windows 11:

PowerShell Version \ exit by exit command close console window close console window Terminal
5.1 not save save save
7.3 not save save save

Personally I would expect history to be saved when exit is typed, unsure if this is a technical limitation @daxian-dbw?

Also I get no history saved when I do SaveAtExit on Mac.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue-Bug It either shouldn't be doing this or needs an investigation.
Projects
None yet
Development

No branches or pull requests

7 participants