-
Notifications
You must be signed in to change notification settings - Fork 136
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
Characters not properly escaped or quoted in path #241
Comments
Thanks for that report, but something is weird here. We do quote our commands. You can actually see that You also forgot to tell us which version you are using, which operating system you're running and which shell you're using. Also the |
I am away from home and don't have access to an actual computer, so I am
going by memory here... I didn't include version information because, iirc,
the functionality was just added in v2.6.1. Also, (again, going by memory
here), the issue seemed pretty obvious when I looked at the code, so I
didn't think information about my specific setup would be all that useful.
The $DIR passed to ls was NOT quoted . Instead, the entire result of the
command was quoted. If you need additional information, I can add it when
I return home. The resulting rmlint.sh is 153MB, by the way. >.>;
…On Jul 3, 2017 2:43 PM, "Chris Pahl" ***@***.***> wrote:
Thanks for that report, but something is weird here. We *do* quote our
commands. You can actually see that
in the command you posted. Manually pasting that command will actually
work fine.
You also forgot to tell us which version you are using, which operating
system you're running and which shell you're using. Also the rmlint.sh in
question would be helpful.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#241 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AALDOY8qlJXnZnyy2jfwLXBn7CmzK5nsks5sKUR0gaJpZM4OMgXQ>
.
|
I just found the code using my phone and I believe the relevant bit is: while [ ! "$(ls -A $DIR)" ]; do I am by no means an expert in shell scripting, but it appears to me that $DIR isn't quoted there. |
Sorry then, I also only had a quick look at your example; I should have spotted the I'll push a fix tomorrow and a testcase for that (we have one, but that one didn't trigger...) |
It will only trigger if Should be fixed by #242 |
Thanks for the PR @SeeSpotRun, had to make a small comment there, but looks good to me otherwise.
Right. Not my brightest hour. |
Should be closed as of c9f5eaa (and the followup commits). |
The text was updated successfully, but these errors were encountered: