Skip to content
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

Fix remove of stale files containing spaces #36

Merged
merged 1 commit into from
Dec 5, 2018

Conversation

frodeaa
Copy link
Contributor

@frodeaa frodeaa commented Dec 2, 2018

replace xargs with while read, avoid globbing

the same could be achived by using xargs with -0
(GNU/BSD) if newline is replaced with \0

tr '\n' '\0' | xargs -0 sh -e -u -c '

but I think this solution is cleaner

fixes: #35

replace xargs with while read, avoid globbing

the same could be achived by using xargs with -0
(GNU/BSD) if newline is replaced with \0

    tr '\n' '\0' | xargs -0 sh -e -u -c '

but I think this solution is cleaner

fixes: sunaku#35
@frodeaa frodeaa changed the title fix remove of stale files containing spaces Fix remove of stale files containing spaces Dec 2, 2018
@sunaku sunaku merged commit 77e7adf into sunaku:master Dec 5, 2018
@sunaku
Copy link
Owner

sunaku commented Dec 5, 2018

Beautiful patch! 👌 Thank you. 👍

@frodeaa frodeaa deleted the fix-remove-stale-space branch December 5, 2018 17:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

rm: No such file or directory
2 participants