delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/03/18/16:12:31

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Thu, 18 Mar 2010 22:12:15 +0100
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Updated [experimental]: coreutils-8.4-1
Message-ID: <20100318211214.GA2334@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <4B9925EF DOT 2050305 AT byu DOT net> <4BA28BC7 DOT 7090803 AT redhat DOT com>
MIME-Version: 1.0
In-Reply-To: <4BA28BC7.7090803@redhat.com>
User-Agent: Mutt/1.5.20 (2009-06-14)
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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

On Mar 18 14:23, Eric Blake wrote:
> On 03/11/2010 10:18 AM, Eric Blake wrote:
> > For those people testing cygwin snapshots, a new release of coreutils,
> > 8.4-1, has been uploaded.  7.0-2 remains current, because the 8.4-1
> > release depends on features available only in recent snapshots (that is,
> > don't upgraded if you are still using the current cygwin 1.7.1).
> 
> Is no one else testing this?  I'm thinking I introduced a bug, because
> 'mv a b' creates 'b.exe', even if 'a' did not have an implicit .exe, and
> am looking into building 8.4-2 to fix it.

Sorry,  Eric.  I didn't test it so far but now I installed it and
it looks like I have a few problems.

1)

  While rename(2) allows to drop the .exe suffix, mv(1) doesn't anymore:

  $ mv a.exe a
  mv: a.exe and a are the same files

  Expected result:

  $ mv a.exe a
  $ ls a*
  a

2) Even renaming doesn't drop the suffix:

  $ mv a.exe b
  $ ls b*
  b.exe

  Expected result:

  $ mv a.exe b
  $ ls b*
  b

3) And, as you noticed yourself, mv adds the suffix even if it wasn't
   given in the original filename:

  $ ls a*
  a
  $ mv a b
  $ ls b*
  b.exe

  Expected result:

  $ mv a b
  $ ls b*
  b

In theory, the only case which should append a suffix is this one:

  $ ls a*
  a.exe
  $ mv a b
  $ ls b*
  b.exe

All of the above problems also affect cp (and probably install).


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019