nanvix icon indicating copy to clipboard operation
nanvix copied to clipboard

[build] Make Does Does Not Work with Filenames Containing Spaces

Open gusinacio opened this issue 6 years ago • 3 comments

Description

I organize my folders using spaces, when I used the command make nanvix, it utilize some command with mkdir and started creating a lot of folders.

Ex: My file path was: "/home/gustavo/Ciencias da computação/5º semestre/Sistemas Operacionais/"

It created the folder "Ciencias" in /home/gustavo, the folders "da", "computação/5º", "semestre/Sistemas" and the folder "Operacionais" in the current path.

Workaround

Tweak build scripts to escape special characters and spaces.

Additional Information

  • https://stackoverflow.com/questions/9838384/can-gnu-make-handle-filenames-with-spaces
  • http://savannah.gnu.org/bugs/?712

gusinacio avatar Apr 29 '19 01:04 gusinacio

@flametuner Thnanks for the repport.

Actually this is a well-known problem related to make (http://savannah.gnu.org/bugs/?712).

A workaround would be to tweak our build scripts to escape special characters and spaces.

ppenna avatar May 02 '19 09:05 ppenna

I didn't get to test it but I believe the problem is the shellscripts image if you don't put double quotes in $workdir the words will break and that's why you should be creating the folders

SeraphyBR avatar Aug 25 '21 11:08 SeraphyBR

https://github.com/koalaman/shellcheck/wiki/SC2086

SeraphyBR avatar Aug 25 '21 11:08 SeraphyBR