www.delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-SWARE-Spam-Status: | No, hits=-1.9 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40,SPF_PASS |
X-Spam-Check-By: | sourceware.org |
MIME-Version: | 1.0 |
In-Reply-To: | <2b7af7c40912200643o12623240k38d10696080cd4bb@mail.gmail.com> |
References: | <2b7af7c40912200643o12623240k38d10696080cd4bb AT mail DOT gmail DOT com> |
Date: | Sun, 20 Dec 2009 17:43:03 +0000 |
Message-ID: | <416096c60912200943s59d7e1f0wcdf29930dfcdcc8f@mail.gmail.com> |
Subject: | Re: mintty question ("file name too long") |
From: | Andy Koppe <andy DOT koppe AT gmail DOT com> |
To: | scubacuda AT gmail DOT com, cygwin AT cygwin DOT com |
X-IsSubscribed: | yes |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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 |
2009/12/20 Rogelio: > I installed mintty (put the js file in the /bin folder, created a > short cut, started the shell from that short cut) You don't need to put the js file in the /bin folder. Its only purpose is to create a mintty shortcut for you. However, the easiest way to install mintty is through Cygwin's setup.exe, where it appears in the "Shells" category. This will also automatically create a suitable mintty shortcut under "Cygwin" in the start menu. > but I'm not able to > use ssh, and when I type "ls" into my cygdrive directory, I get the > following error. =C2=A0(Everything works fine from Cygwin's interface, of > course) > > **************************************************************** > Error: Current working directory is a virtual Cygwin directory. > Can't start native Windows application from here. > > bash: /cygdrive/c/WINDOWS/system32/ls: File name too long > bash-3.2$ ls -al > Error: Current working directory is a virtual Cygwin directory. > Can't start native Windows application from here. > > bash: /cygdrive/c/WINDOWS/system32/ls: File name too long > bash-3.2$ I don't know what version of 'ls' you're picking up there, but in any case it looks as if bash is being invoked as a non-login shell. That means that /etc/profile isn't being executed, hence you don't get the standard Cygwin prompt and the Cygwin /bin directory isn't added to the path. To ensure that bash is invoked as a login shell, mintty needs to be invoked with a single dash ('-') as parameter, i.e. the shortcut target needs to be something like: "C:\cygwin\bin\mintty.exe -". Andy -- 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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |