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 To: scubacuda AT gmail DOT com, cygwin AT cygwin DOT com Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , 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