| delorie.com/archives/browse.cgi | search |
| 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: | <5A95B0B37820D511AD1500B0D0AADF774DDE52@lbsvnt4> |
| From: | "Strohhaecker, Bernd" <BStrohhaecker AT Hueller-Hille DOT com> |
| To: | cygwin AT cygwin DOT com |
| Subject: | Re: Editing zipped files with VIM under cygwin |
| Date: | Thu, 15 Nov 2001 11:57:50 +0100 |
| MIME-Version: | 1.0 |
| X-Mailer: | Internet Mail Service (5.5.2653.19) |
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 ?
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/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |