delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/12/22/18:46:33

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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
Date: Wed, 22 Dec 2004 15:47:20 -0800 (PST)
From: Sam Vaughan <sam AT vaughantech DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: bug? cp and coreutils-5.2.1-2
In-Reply-To: <005301c4e87c$8ad2b530$5709a443@c40624a>
Message-ID: <Pine.LNX.4.61.0412221538390.8560@zelda.vaughantech.com>
References: <Pine DOT LNX DOT 4 DOT 61 DOT 0412221431590 DOT 8328 AT zelda DOT vaughantech DOT com> <004601c4e87c$2efd2fb0$5709a443 AT c40624a> <005301c4e87c$8ad2b530$5709a443 AT c40624a>
MIME-Version: 1.0

On Wed, 22 Dec 2004, Raye Raskin wrote:

>>> Just updated my Cygwin. If I use cp to copy a file, in this case an 
>>> executable, I get "This program cannot be run in DOS mode" when I try to 
>>> run the copied file.
>>> 
>>> The copied file also now differs from the original.
>>> 
>>> $ ls -l /bin/sum.exe
>>> -rwxr-x---+ 1 sam Users 26624 Dec 21 02:32 /bin/sum.exe
>>> 
>>> $ cp /bin/sum.exe copysum.exe
>>> 
>>> $ ls -l copysum.exe
>>> -rwxr-x---  1 sam None 26713 Dec 22 14:35 copysum.exe
>>> 
>>> $ cmp /bin/sum.exe copysum.exe
>>> /bin/sum.exe copysum.exe differ: char 119, line 1
>>> 
>>> $ ./copysum.exe
>>> This program cannot be run in DOS mode.
>>> 
>>> 
>>> Anybody else experiencing this? I have tested this out on three different 
>>> computers that have been updated today, all produce the same results. On a 
>>> box thats running the older cygwin, cp copies the files exactly and I have 
>>> no trouble running them.
>>> 
>>> 
>>> Thanks,
>>> Sam
>>

UPDATE:

I reinstalled coreutils via setup, and I checked Default text file type as 
'Unix' and now the behavoir is correct.  'DOS' was the default I selected 
when I installed Cygwin initially.

Reinstalling coreutils with 'DOS' set as default file type,  brings back 
the behavior and I cannot run the copied file.


Sam


--
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