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

Support filenames with spaces #30

Merged
merged 2 commits into from Oct 9, 2018
Merged

Conversation

bmwiedemann
Copy link
Member

seen in the wild in the ghostscript-fonts-grops package
(when comparing i586 and x86_64 results)

  • Includes some test coverage
  • Needs more testing.
  • Needs more double-quoted $file

seen in the wild in the ghostscript-fonts-grops package
@olafhering
Copy link
Contributor

Why does filling $files work they way it was done in that patch? I would expect "foo bar" to expand to two strings. $files should probably become an array.

@bmwiedemann
Copy link
Member Author

bmwiedemann commented Sep 27, 2018

files is really one long string including spaces and newlines at that point and filesarray is created from it later.
You can play with

x=`echo -e foo bar\\\\nbaz`
grep x "$x"
grep x $x

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.

None yet

2 participants