Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Date: Thu, 15 Nov 2001 12:57:55 +0100 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: Editing zipped files with VIM under cygwin Message-ID: <20011115125755.U27452@cygbert.vinschen.de> Mail-Followup-To: cygwin AT cygwin DOT com References: <5A95B0B37820D511AD1500B0D0AADF774DDE52 AT lbsvnt4> <20011115124706 DOT T27452 AT cygbert DOT vinschen DOT de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20011115124706.T27452@cygbert.vinschen.de>; from cygwin@cygwin.com on Thu, Nov 15, 2001 at 12:47:06PM +0100 On Thu, Nov 15, 2001 at 12:47:06PM +0100, Corinna Vinschen wrote: > 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 Just uploaded which-1.5-1. Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Developer mailto:cygwin AT cygwin DOT 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/