-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Unable to remove file with tabulation symbol in its name #12816
Comments
I believe double quotes interpret escapes like |
@basilefff You are correct that the underlying ansi stripping logic removes also most of the ASCII control chars and not explicitly printables (including See the related issue #6315 and the (flawed) motivation that I should finish up my reimplementation of |
Oh, I guess I should have searched the issues more. I guess I shall close this one as a duplicate. |
That's a hard one to find if you are not 100% sure what to search for. Thanks for reporting it and already drilling down on the underlying problem :) |
Describe the bug
When trying to delete files containing tabulation symbol in them, I encountered a very unexpected error.
Also, I did try with freshly compiled version from main, with the same error happening.
How to reproduce
touch "c\td.txt"
rm "c\td.txt"
Alternatively, after first step use auto completion, and even when closed by quotation marks (which by default it isn't) it shows the same error message.
Expected behavior
Be able to delete file with tabulation symbol in filename
Screenshots
Configuration
Additional context
I am pretty sure that the problem is in this code in file nushell/crates/nu-command/src/filesystem/rm.rs at line 160
Function
nu_utils::strip_ansi_string_unlikely
strips tabs and I am not sure why it is hereThe text was updated successfully, but these errors were encountered: