ddworken / hishtory

Your shell history: synced, queryable, and in context
https://hishtory.dev
MIT License
2.49k stars 47 forks source link

Newlines in command break second invocation #163

Closed bnichs closed 8 months ago

bnichs commented 9 months ago
% hishtory --version 
hishtory version v0.265

When I run command that have newlines they work and are added to the history list fine: hishtory-newline-1

However, when that same command is then run, the newline is printed to the terminal literally, causing the command to break: hishtory-newline-2

I assume this is an escaping issue somewhere, but im not sure where it would be.

ddworken commented 8 months ago

Ah, thank you for pointing this out! I had run into this once on my own, but forgotten to follow up. #170 should fix this, I'll re-ping this issue once that gets merged and released.

ddworken commented 8 months ago

Ok, this is now fixed and released! Thank you again for pointing this out, and if you spot any other issues, please let me know!