On Tue, Jan 26, 2010 at 11:53:22PM -0500, James Vega wrote:
> Markus,
> 
> Under *nix, gnupg.vim always lets s:shellredir to the current option
> value, &shellredir.  Since &shell is specifically changed to 'sh',
> &shellredir needs to also be set to an sh-compatible value.
> 
> In general, the current behavior doesn't cause problems but if the user
> is using (t)csh, &shellredir will be '>&' which doesn't work as the
> script is expecting when using POSIX sh.  Attached patch always sets
> &shellredir to '>%s' to solve the problem.

Patch actually included this time.

-- 
James
GPG Key: 1024D/61326D40 2003-09-02 James Vega <[email protected]>
diff --git a/plugin/gnupg.vim b/plugin/gnupg.vim
index fdcac93..eca2969 100644
--- a/plugin/gnupg.vim
+++ b/plugin/gnupg.vim
@@ -234,7 +234,7 @@ function s:GPGInit()
   let s:shellsave = &shell
   if (has("unix"))
     " unix specific settings
-    let s:shellredir = &shellredir
+    let s:shellredir = '>%s'
     let s:shell = 'sh'
     let s:stderrredirnull = '2>/dev/null'
     let s:GPGCommand = "LANG=C LC_ALL=C " . s:GPGCommand

Attachment: signature.asc
Description: Digital signature

Reply via email to