Bug#552085: vim-scripts: gnupg plugin fails if /bin/sh is a link to dash instead of bash

Michael Kaaden michael at kaaden.net
Sun Jan 24 06:28:31 UTC 2010


Hi James.

Am 24.01.2010 00:02, schrieb James Vega:
> On Fri, Oct 23, 2009 at 11:19:24AM +0200, Michael Kaaden wrote:
>> if /bin/sh is a soft link to /bin/dash, the gnupg plugin fails on my
>> system.
>>
>> -----snip-----snap----------snip-----snap----------snip-----snap-----
>>
>> $ ls -l /bin/sh
>> lrwxrwxrwx 1 root root 4 23. Okt 10:47 /bin/sh -> dash
>> $ LANG=C vim /tmp/foo.gpg
>> Error detected while processing function <SNR>10_GPGInit:
>> line   89:
>> "/tmp/foo.gpg" 20L, 1047C
>> Error detected while processing function <SNR>10_GPGDecrypt:
>> line   15:
>> E484: Can't open file /tmp/v302234/1
>> File is not encrypted, all GPG functions disabled!
>> Press ENTER or type command to continue
>>
>> -----BEGIN PGP MESSAGE-----
>> Version: GnuPG v1.4.10 (GNU/Linux)
>> ...
>> -----END PGP MESSAGE-----
>> $
>>
>> -----snip-----snap----------snip-----snap----------snip-----snap-----
> 
> Are you still seeing this?  I had been, but when I sat down to give it a
> good look this weekend, everything was working fine.  If you are still
> seeing it, can you try running “vim -u NORC -N” to eliminate any
> interactions from your vimrc?

Yes, I'm still seeing this when /bin/sh is a soft link to /bin/dash. But
interestingly enough, when running "vim -u NORC -N", it works despite
this soft link.

When I deleted the following line in my .vimrc, the bug disapperad:
  set shell=csh          " shell to use

This line had no negative impact when /bin/sh is linked to /bin/bash,
but the link to /bin/dash leads to problems.

As it seems the bug only appears if one has a strange configuration file
(I don't even remember why I set this option), so it should probably be
closed.

Thanks for the hint, James!

Cheers,
  Michael
-- 
Michael Kaaden                                      michael at kaaden.net
                      http://www.kaaden.net/
  If Bill Gates had a dime for every time a Windows box crashed...
              .... Oh, wait a minute, he already does.






More information about the pkg-vim-maintainers mailing list