delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2015/11/26/07:02:46

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:subject:to:references:from:message-id:date
:mime-version:in-reply-to:content-type
:content-transfer-encoding; q=dns; s=default; b=WVF8LRDK0ZK69VWR
3xWGEQoS0wZU6UKh6zCyQvfYJXj99KVOne+j3Znc22hEWuunJGQ7+Mh/W9JKpDxR
4VyYTYrf6TuQ8sssO34jDn/KhcjfJlh6ECYN2hzL9vuv0cUNM/hZfRdNbN8d8ecP
BqGmB2E5QS1eWOgT32zso/Y46kA=
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:subject:to:references:from:message-id:date
:mime-version:in-reply-to:content-type
:content-transfer-encoding; s=default; bh=ESwgedmr/bfJHT3Vv1QJQv
DdMP0=; b=U4XyMzz3jE6UTtxioXysfVRqSHmDIMmp8abusvTHZo8rO0YxPyhble
k1YMYUzjBDIARumQR9fNCKRP92eJvgfzRwiB4SlDVNq7+rnHJvIiq6EV4vJ5nT/M
1g+fIuWfw8y+/mZpz0RVqkaKNYyLFNqIoFLdL8AIbi1y3HxSQsYHQ=
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=0.4 required=5.0 tests=AWL,BAYES_20,KAM_LAZY_DOMAIN_SECURITY autolearn=no version=3.3.2
X-HELO: demumfd002.nsn-inter.net
Subject: Re: mksnt sh is invoked when executing cygwin icon;
To: cygwin AT cygwin DOT com
References: <CADex0xxaqFsuJHmMacc_6dQ+GRjdfKZ2eDgmt_eYa=9BqfbU5g AT mail DOT gmail DOT com> <5656C21A DOT 3060005 AT gmail DOT com>
From: Thomas Wolff <towo AT towo DOT net>
Message-ID: <5656F4C6.5060204@towo.net>
Date: Thu, 26 Nov 2015 13:02:14 +0100
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0
MIME-Version: 1.0
In-Reply-To: <5656C21A.3060005@gmail.com>
X-purgate-type: clean
X-purgate-Ad: Categorized by eleven eXpurgate (R) http://www.eleven.de
X-purgate: clean
X-purgate: This mail is considered clean (visit http://www.eleven.de for further information)
X-purgate-size: 1588
X-purgate-ID: 151667::1448539336-000015C7-DEA28755/0/0
X-IsSubscribed: yes

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)?
>
And what does `readshortcut -a "$Desktop/Cygwin Terminal.lnk"` say?


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