delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/11/13/06:13:21

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Message-ID: <5A95B0B37820D511AD1500B0D0AADF774DDE49@lbsvnt4>
From: "Strohhaecker, Bernd" <BStrohhaecker AT Hueller-Hille DOT com>
To: vim AT vim DOT org, cygwin AT cygwin DOT com
Subject: Re: Editing zipped files with VIM under cygwin
Date: Tue, 13 Nov 2001 12:03:19 +0100
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2653.19)
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id fADBDJd27244

> -----Ursprüngliche Nachricht-----
> Von:	Corinna Vinschen [SMTP:cygwin AT cygwin DOT com]
> Gesendet am:	Montag, 12. November 2001 15:54
> An:	cygwin AT cygwin DOT com
> Betreff:	Re: Editing zipped files with VIM under cygwin
> 
> On Mon, Nov 12, 2001 at 02:55:33PM +0100, Strohhaecker, Bernd wrote:
> > ...
> > 
> > "bzip2 --version >x 2>&1" seems to wait for an input/EOF ???
> 
> Dunno.  I've just checked it here in tty and notty mode and
> I don't have that problem.  Reading both, gzipped and bzipped
> files wors fine.  Are you using *gasp* cmd as shell?
> 
> Corinna

No, bash. Well, I'll try to be more exactly.

1. I'm using NT 4 SR 5 (german) with cygwin 1.3.5, vim 6.0.93-1, bzip
1.0.1-6
under GNU bash, version 2.05.0(8)-release (i686-pc-cygwin)

2. VIM checks the existance of a zip-prog with the function:
let e = executable(name)
This fails on my (cygwin-)system for any program:
:echo executable("bash")
Rufe Shell auf, um "(which bash) >/tmp/v645258/1 2>&1" auszuführen

Datei "/tmp/v645258/1" kann nicht gelesen werden-1

3. if the above check fails, VIM does a second one:
let r = system(name . " --version")
And this one fails only for bzip2 (not for gzip !). The same seems to
happens at the shell:

root AT LBWSNT358 ~
$ bzip2 --version > xx 2>&1

--> No prompt here !!!

4. Meanwhile I've found a workaround. After changing my VIM-settings for
shellredir 
from '>%s 2>&1' to '>%s 2>1' also ':e xx.bz2' works, for whatever reasons.

But nevertheless there are IMO two bugs:
1. VIM's 'let e = executable(name)' doesn't work.
2. 'bzip2 --version > xx' doesn't finish.

Or do I miss anything here ?

Kind regards, 

Bernd

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019