PSReadLine icon indicating copy to clipboard operation
PSReadLine copied to clipboard

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

Open rkeithhill opened this issue 9 years ago • 9 comments

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.

rkeithhill avatar Jul 05 '15 20:07 rkeithhill

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.

gwojan avatar Jul 05 '15 20:07 gwojan

@gwojan Thanks for confirming the issue.

rkeithhill avatar Jul 05 '15 21:07 rkeithhill

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

daxian-dbw avatar Apr 06 '22 16:04 daxian-dbw

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 avatar Apr 13 '22 18:04 ghost

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

rkeithhill avatar Apr 20 '22 05:04 rkeithhill

@rkeithhill Thanks for checking and confirming.

daxian-dbw avatar Apr 20 '22 15:04 daxian-dbw

same issue, 2.2.5 and win11.

puxu-msft avatar Jul 29 '22 08:07 puxu-msft

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

Shuangcheng-Ni avatar Aug 14 '23 12:08 Shuangcheng-Ni

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.

StevenBucher98 avatar Oct 02 '23 18:10 StevenBucher98