This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Re: Editing zipped files with VIM under cygwin
- From: Corinna Vinschen <cygwin at cygwin dot com>
- To: cygwin at cygwin dot com
- Date: Thu, 15 Nov 2001 12:47:06 +0100
- Subject: Re: Editing zipped files with VIM under cygwin
- References: <5A95B0B37820D511AD1500B0D0AADF774DDE52@lbsvnt4>
On Thu, Nov 15, 2001 at 11:57:50AM +0100, Strohhaecker, Bernd wrote:
> Seems I've been a little hasty when stating everything's ok :-(
>
> Indeed, vim's function executable("name") returns 1 for everything,
> also for not existing programs.
>
> Looking at the sources I've found that:
>
> 1. vim (6.0.93) tests the existance of 'name' in os_unix.c
> inside the function mch_can_exe with:
>
> sprintf((char *)buf, "which %s", name);
> ...
> retval = (*p != NUL && strstr((char *)p, "not found") == NULL);
> return retval;
>
> 2. which (which-1.4) returns, if the command wasn't found:
> fprintf (stderr, "no %s in %s\n", cmd, PATH);
>
> Which one should be changed ?
^^^^^
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Developer mailto:cygwin@cygwin.com
Red Hat, Inc.
--
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/