John Beckett wrote:
The problem is that (I think) Vim uses the 'shell' option to determine what shell to use to run :! commands, and some users would change that to some quirky shell like 4NT or a host of others. If netrw checks for 'cmd', it could conceivably fail the check but 'move' and 'copy' and so on _would_ actually work because the user's shell does support those commands.
Yeah -- shortly after sending that note I switched netrw to use:
if !executable(g:netrw_localcopycmd) && !executable(&shell) (etc for the other commands)
I think the best thing would be to just run the command (like 'move') and on the first error display a comprehensive error indicating that the move failed and things the user might do. All you can do is hope that v:shell_error will be nonzero when an error occurs.
I'll have netrw do this. Regards, Chip Campbell -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php
