Skip to content

Conversation

@wfleming
Copy link
Contributor

If a path has a space in it, the grep will fail unless we quote the filename.

index.js Outdated
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! I like your fix. I don't think it's better, but one other idea I had was something like:

var grepString = ["grep -inHwoE", fixmeStrings, "'" + file + "'"].join(" "); 
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ABaldwinHunter You're right, we're joining enough bits now that it's not very readable. Will change in a sec.

If a path has a space in it, the grep will fail unless we quote the filename.
@wfleming
Copy link
Contributor Author

@codeclimate/review recently noticed I let this PR lie fallow. I think it's still a bug, and have updated my patch. Review please?

@fhwang
Copy link

fhwang commented Nov 19, 2015

LGTM

wfleming added a commit that referenced this pull request Nov 19, 2015
quote filename shelling out to grep
@wfleming wfleming merged commit ee589d7 into master Nov 19, 2015
@wfleming wfleming deleted the will/quote-file branch November 19, 2015 15:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

4 participants