When attempting to copy a marked directory to a target directory the g:netrw_localcopydircmdopt was ignored resulting on unix systems to attempt to use the cp command without the required -R argument.
This change captures the g:netrw_localcopydircmdopt value and appends it to the system() call when the marked file(s) is a directory.
Setup:
mkdir /tmp/netrw-test mkdir /tmp/netrw-test/foo mkdir /tmp/netrw-test/bar mkdir /tmp/netrw-test/bar/baz touch /tmp/netrw-test/bar/baz/test.txt
To recreate the issue:
VIMRUNTIME=./runtime/ ./src/vim /tmp/netrw-testfoo and type mt to set the targetbar and type <Enter>baz and type mf to mark a directorymc to copy the directoryhttps://github.com/vim/vim/pull/17230
(1 file)
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
A workaround is to add this to your vimrc:
let g:netrw_localcopydircmd=“cp -R” let g:netrw_localcopydircmdopt=“”
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
this should go via @saccarosium https://github.com/saccarosium/netrw.vim
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
Closed #17230.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
Done: saccarosium/netrw.vim#91
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
Reopened #17230.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
Since the original repository is now archived and moved here. I'd like to reopen this bug as it is still in issue on latest master branch. Thank you.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
Closed #17230.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
I was wrong. never mind.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()