This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Editing zipped files with VIM under cygwin


> -----Ursprüngliche Nachricht-----
> Von:	Corinna Vinschen [SMTP:cygwin@cygwin.com]
> Gesendet am:	Montag, 12. November 2001 15:54
> An:	cygwin@cygwin.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@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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]