delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2015/11/30/21:15:12

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:mime-version:in-reply-to:references:date
:message-id:subject:from:to:content-type; q=dns; s=default; b=KW
+gjeeqyNNpc5BNna4A17YJUGTYqwHx8eRktKpKDzgnb02gDKjU7QoXIPye4OryEU
9MwIAU1RndybBK8rbBKpNYJJE3h9DHWy+G3PhHKZeaVbBRHuNJWW7KnC+kBeSpKU
jc5UHeOP1CzPVa+iGbB1eJnuXLl+Tx97jlZ+9fkEs=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:mime-version:in-reply-to:references:date
:message-id:subject:from:to:content-type; s=default; bh=eHR8/DW6
dmir4oDCLxsCvA2h8OA=; b=I+qEQjf0yDVg44m1nn7zn70+szeL8rWd0KWWDQr7
xpXDwiWPqFDMY9qr8fH8kRdZEuyts6MPwI416Pn/l6Zvo4rIFDccGQ7o/qhDFNrs
Ln0+WnnufAjz/mV6AsSZjWko5yhsTJbQaT9GXvWdagLyfjQny0flM6qn05UuDPgh
+Pw=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.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
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-2.3 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2
X-HELO: mail-wm0-f46.google.com
MIME-Version: 1.0
X-Received: by 10.28.72.137 with SMTP id v131mr33455914wma.63.1448936088908; Mon, 30 Nov 2015 18:14:48 -0800 (PST)
In-Reply-To: <5656F4C6.5060204@towo.net>
References: <CADex0xxaqFsuJHmMacc_6dQ+GRjdfKZ2eDgmt_eYa=9BqfbU5g AT mail DOT gmail DOT com> <5656C21A DOT 3060005 AT gmail DOT com> <5656F4C6 DOT 5060204 AT towo DOT net>
Date: Mon, 30 Nov 2015 18:14:48 -0800
Message-ID: <CADex0xzsn+BQwLNvPo7FhMQ-MdOhGqOcc5XCZFtNRvZb8iGUSA@mail.gmail.com>
Subject: Re: mksnt sh is invoked when executing cygwin icon;
From: Kenneth Wolcott <kennethwolcott AT gmail DOT com>
To: cygwin AT cygwin DOT com
X-IsSubscribed: yes

On Thu, Nov 26, 2015 at 4:02 AM, Thomas Wolff <towo AT towo DOT net> wrote:
> On 26.11.2015 09:26, EXT David Macek wrote:
>>
>> On 26. 11. 2015 2:27, Kenneth Wolcott wrote:
>>>
>>> Hi;
>>>
>>>    It seems that a 32bit Windows server with a pre-existing MKS Toolkit
>>> installation prevents an interactive Cygwin window (mintty) from
>>> starting properly.
>>>
>>>    If the c:\mksnt directory (where MKS Tookkit is installed) is
>>> renamed to c:\NOTmksnt, then double-clicking the Cygwin icon results
>>> in:
>>>
>>> "Failed to run C:/mksnt/sh.exe: No such file or directory"
>>>
>>> But if the c:\NOTmksnt directory is renamed back to what it was, then
>>> the window opens up with sh.exe from mksnt instead of bash and seems
>>> to hang for a very long time.
>>>
>>>     Why is this?  Part of me thinks that Cygwin and MKS Toolkit should
>>> just coexist just fine, each not knowing about the other (c:\cygwin
>>> and c:\mksnt).  Part of me thinks that I'd like to have Cygwin come
>>> first in the path rather than having c:\mksnt first in the path.  Is
>>> there a way to force the Cygwin install process (or fix it afterward)
>>> to put Cygwin first?
>>>
>>>    I tried to change /etc/profile so that the PATH variable was set to
>>> exclusively Cygwin stuff, but that had no effect.
>>>
>>>    How to fix this outside Cygwin? (The Windows side)
>>>
>>>    How to fix this inside Cygwin?
>>
>> Sounds to me like your login shell is hard-coded to C:/mksnt/sh.exe.
>>
>> What does `getent passwd $(whoami) | cut -d: -f7` say (run
>> `C:\cygwin\bin\bash --login -i` directly to get a working shell)?

/bin/bash

> And what does `readshortcut -a "$Desktop/Cygwin Terminal.lnk"` say?

readshortcut: Load failed on C:\cygwin\Cygwin Terminal.lnk

What does that imply?

Thanks!
Ken

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