RichiH / vcsh

config manager based on Git
GNU General Public License v2.0
2.2k stars 124 forks source link

The `vcsh delete` command fails to remove files that have spaces in their filenames #347

Open hanjianwei opened 4 months ago

hanjianwei commented 4 months ago

Here are the steps to reproduce this bug:

vcsh init foobar
touch 'foo bar'
vcsh foobar add 'foo bar'
vcsh foobar commit -m 'Add files'
vcsh foobar delete

The foo bar file still exists. It might be necessary to set a new IFS, similar to what is done in the write_gitignore command.