Open BarbzYHOOL opened 5 years ago
Ok I found the solution, but which one is better?
function mvbak --description 'Rename files to make a backup copies'
__bak mvbak mv '$argv'
end
function mvbak --description 'Rename files to make a backup copies'
__bak mvbak mv \"$argv\"
end
The second one looks better to me (cause it's clear)
Also if you have a dir called "foo bar/" it will fail to remove the "/"
__mv_bak_name works fine but the overall program does not:
mvbak pa\ pa\ pa/
mv: cannot move ‘pa pa pa/’ to a subdirectory of itself, ‘pa pa pa/.20190225_162111.bak’
@bobthecow @scorphus
@bobthecow I fixed it on my repo https://github.com/BarbzYHOOL/plugin-bak/tree/master
Would you kindly open a PR?
Thank you!
i tried to do it https://github.com/oh-my-fish/plugin-bak/pull/9
I also get other errors:
I tried to fix it by adding quotes to some variables, but it still doesn't work
Need some guidance here :'( @bobthecow