Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Message-ID: <43009ED5.50409@mscha.org>
Date: Mon, 15 Aug 2005 15:55:33 +0200
From: Michael Schaap <cygwin@mscha.org>
Reply-To: cygwin@cygwin.com
User-Agent: Mozilla Thunderbird 1.0+ (Windows/20050712)
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: missing sh.exe in coreutils
References: <7062534.1124094500717.JavaMail.adm-moff@moffice5.nsc.no> <43005647.59447F23@dessent.net>
In-Reply-To: <43005647.59447F23@dessent.net>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes

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.

 - Michael

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

