- Sponsor
-
Notifications
You must be signed in to change notification settings - Fork 5
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
Really escape zsh history #3124
Comments
|
Here is a quick fix for this issue. But I'd like to get a review, as I haven't dig into mc's source code too much and this might be done more effectively or in some other way.
As a side note, I'd really like to see this fix and one from #3125 to get into mc before 4.8.12. So these fixes hopefully will be available in next Ubuntu LTS and Debian stable. |
Replying to z0rc:
Looks correct. Thanks!
Branch: 3124_zsh_escape_history |
|
|
I patched 4.8.11 from FreeBSD ports (since no 4.8.12 yet), this works great, except that last cd %b command is still in the shell history (while other aren't, au contraire without the patch).
Do I get this alone ? |
Replying to drookie:
In the zsh shell history? |
|
Important
This issue was migrated from Trac:
z0rc
(z0rc3r@….com)gotar@….pl
The [ cd "`printf "%b" ...] stuff doesn't completely escape zsh history. There is one edge case. The use case is following.
Here is citation from zsh documentation about HIST_IGNORE_SPACE:
There is no option to change this behaviour. Can mc adopt recommended action to execute " " command after cd?
Note
Original attachments:
z0rc
(z0rc3r@….com) onDec 16, 2013 at 20:15 UTC
The text was updated successfully, but these errors were encountered: