Red Hat Bugzilla – Bug 446376
sudo strips leading slashes of paths passed to vim
Last modified: 2008-07-08 08:38:34 EDT
Description of problem:
If a sudo is used to launch vim against several files, only the first path
name remains unmangled. All other paths passed to vim will have leading slash
Version-Release number of selected component (if applicable):
sudo vim /etc/hosts /etc/services
Steps to Reproduce:
1. Run above command.
2. First file (/etc/hosts) will load just fine.
3. Tell vim to load next file (/etc/services) using ':n'.
Next file (/etc/services) will not load because vim will actually be trying to
vim should have no problem loading 2nd file in example.
This example works just fine without sudo and also works fine as root via su.
I have not seen the problem with any other command other than vim.
fixed in 1.6.9p13-5