delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/08/15/12:34:08

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
MIME-Version: 1.0
Subject: RE: missing sh.exe in coreutils
Date: Mon, 15 Aug 2005 09:30:17 -0700
Message-ID: <EEC4AE8A88A1964AA0D0A014FECA23881741FA@DF-FLASH-MSG.exchange.corp.microsoft.com>
From: Stephan Mueller <smueller AT exchange DOT microsoft DOT com>
To: "Reinhard Nissl" <rnissl AT gmx DOT de>, <cygwin AT cygwin DOT com>
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id j7FGY6Jl004165

Renaming an in-use file is not a new Windows feature.  It's certainly
been there since Windows NT and 200, and I'm pretty sure it's in 9x as
well.  I'd check if I had a 9x box handy, but instead, Reinhard, as the
one who raised the concern, maybe you can :-)

stephan();


-----Original Message-----
From: cygwin-owner AT cygwin DOT com [mailto:cygwin-owner AT cygwin DOT com] On Behalf
Of Reinhard Nissl
Sent: Monday, August 15, 2005 7:15 AM
To: cygwin AT cygwin DOT com
Subject: Re: missing sh.exe in coreutils

Hi,

Michael Schaap wrote:

> On 15-Aug-2005 10:45, Brian Dessent wrote:
> 
>> Sigurd Nes wrote:
>>
>>> Is sh.exe missing from coreutils?
>>>
>>> I am not able to use sh after a upgrade - and sh-utils is listed as 
>>> _obsolete
>>
>> First, sh is not a part of coreutils nor its predecessor sh-utils. 
>> Until recently, /bin/sh has been ash, in the package 'ash'.  Now it
is a
>> copy of /bin/bash, from the package 'bash'.  The new bash postinstall
>> script is supposed to make this change for you when upgrading, but
>> because the shell itself is used to run the script it does not always
>> work.  You can just manually run /etc/postinstall/00bash.sh.done and
it
>> should fix things.  Or re-run setup and set 'bash' to reinstall.
> 
> Apologies if I'm stating something obvious and well-known, but if the 
> problem is that a currently running sh.exe cannot be 
> deleted/overwritten, note that you *can* rename a running executable.
> So something like
>    rm -f /bin/sh0.exe
>    [[ -f /bin/sh.exe ]] && mv /bin/sh.exe /bin/sh0.exe
>    cp -fpuv /bin/bash.exe /bin/sh.exe
> might do the job.

But isn't renaming a running executable only a feature of recent Windows

OSs?

I think it didn't work with Windows NT and Windows 2000.

Bye.
-- 
Dipl.-Inform. (FH) Reinhard Nissl
mailto:rnissl AT gmx DOT de

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


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