From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 40693 invoked by alias); 1 Dec 2015 02:14:54 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 40676 invoked by uid 89); 1 Dec 2015 02:14:53 -0000 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 Received: from mail-wm0-f46.google.com (HELO mail-wm0-f46.google.com) (74.125.82.46) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Tue, 01 Dec 2015 02:14:52 +0000 Received: by wmvv187 with SMTP id v187so185231684wmv.1 for ; Mon, 30 Nov 2015 18:14:49 -0800 (PST) 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) Received: by 10.28.64.11 with HTTP; Mon, 30 Nov 2015 18:14:48 -0800 (PST) In-Reply-To: <5656F4C6.5060204@towo.net> References: <5656C21A.3060005@gmail.com> <5656F4C6.5060204@towo.net> Date: Tue, 01 Dec 2015 02:14:00 -0000 Message-ID: Subject: Re: mksnt sh is invoked when executing cygwin icon; From: Kenneth Wolcott To: cygwin@cygwin.com Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes X-SW-Source: 2015-12/txt/msg00000.txt.bz2 On Thu, Nov 26, 2015 at 4:02 AM, Thomas Wolff 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