When supplying a directory whose path contain spaces to the script as the input or output directory, the script errors and freezes on:
grep: /path/to/dir_with_spaces/<first word>: No such file or directory
Error reproduction
cdmkdir 'Test directory'coding-style.sh '~/Test directory' ~...grep: /home/$USER/Test: No such file or directory (granted you have no ~/Test directory, but either way it targets the wrong dir)
Error's location
coding-style.sh
Platform concerned
[x] Linux [ ] Windows
Error's description
When supplying a directory whose path contain spaces to the script as the input or output directory, the script errors and freezes on:
grep: /path/to/dir_with_spaces/<first word>: No such file or directory
Error reproduction
cd
mkdir 'Test directory'
coding-style.sh '~/Test directory' ~
...
grep: /home/$USER/Test: No such file or directory
(granted you have no ~/Test directory, but either way it targets the wrong dir)