dotfiles icon indicating copy to clipboard operation
dotfiles copied to clipboard

Correctly handle spaces in file paths

Open wdn opened this issue 4 years ago • 0 comments

Since install_dotfiles() in bootstrap treats the output of find as a list rather than an array, paths with spaces in them will break. The simplest solution is to change the Internal Field Separator to a newline, as it is extremely unlikely that any filenames will contain that character.

Alternatively, the result of find could be put into an array, as demonstrated by this answer, but this seems like a reasonable fix for the vast majority of cases.

wdn avatar Aug 19 '20 19:08 wdn