X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-2.8 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Message-ID: <32878103.post@talk.nabble.com> Date: Mon, 28 Nov 2011 05:59:59 -0800 (PST) From: gabier To: cygwin AT cygwin DOT com Subject: Re: Installation problems with home path and sshd In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit References: <32877343 DOT post AT talk DOT nabble DOT com> 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 Andy Koppe wrote: > > How did you install mintty, and how are you invoking it? If you invoke > it without arguments, it'll run your shell as a so-called non-login > shell (as is standard behaviour for terminal emulators). This means > that /etc/profile won't be sourced, which is where your home directory > gets created and cd'd to. > > To tell mintty to invoke the shell as a login shell and hence source > /etc/profile, pass a '-' (i.e. a hyphen/minus sign) as the last > argument. That's what the mintty shortcut created by setup.exe does. > Thank you Andy, I understand where the problem is, but I am not sure to understand what is to be done, i.e. what arguments give to mintty ? I installed it with the Cygwin setup. Its shortcut is "C:\cygwin\bin\mintty.exe -". The hyphen is indeed there. By contrast, the regular Cygwin console (which opens in the right directory) calls a cygwin.bat, which contains @echo off C: chdir C:\cygwin\bin bash --login -i Should I make mintty call the same bat file ? :) gabier -- View this message in context: http://old.nabble.com/Installation-problems-with-home-path-and-sshd-tp32877343p32878103.html Sent from the Cygwin list mailing list archive at Nabble.com. -- 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