delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/04/25/22:36:53

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
X-Authentication-Warning: slinky.cs.nyu.edu: pechtcha owned process doing -bs
Date: Fri, 25 Apr 2003 22:36:45 -0400 (EDT)
From: Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: cygwin AT cygwin DOT com
Subject: Re: cat stories
In-Reply-To: <20030426021119.GA16026@redhat.com>
Message-ID: <Pine.GSO.4.44.0304252228300.10996-100000@slinky.cs.nyu.edu>
Importance: Normal
MIME-Version: 1.0

On Fri, 25 Apr 2003, Christopher Faylor wrote:

> On Fri, Apr 25, 2003 at 08:50:23PM -0500, Matthew Smith wrote:
> >Right. How gnarly are the cygwin patches for the current sh-utils and
> >file-utils? If they're nothing major, I'll step up to bat for maintaining
> >coreutils.
>
> I made an attempt to get "cp foo /bin" working "correctly" so that foo.exe
> would be copied if there was no existing foo but I never got it quite right.
> I don't think my changes should be reincorporated although it would be nice
> to get this working.
>
> sh-utils should be patched so that test.exe uses the cygwin version of
> access() rather than the sh-utils version.
>
> Other than that, I think it should be standard.
> cgf

Chris,

Regarding the .exe appending issue, do you think it would make sense to
add a "stat_pure()" function to Cygwin (as suggested in
<http://www.cygwin.com/ml/cygwin/2003-04/msg02180.html>)?
That would make easier implementing things like:

   struct stat buf;
   char name[8]="foo";
   if (stat_pure(name, &buf)) {
     strcat(name,".exe");
     if (errno == ENOENT && !stat_pure(name, &buf)) {
       ...
     }
   }

which would be useful for both cp and, say, unzip...
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha AT cs DOT nyu DOT edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor AT watson DOT ibm DOT com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Knowledge is an unending adventure at the edge of uncertainty.
  -- Leto II


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.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