From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1952 invoked by alias); 28 Nov 2011 14:00:36 -0000 Received: (qmail 1933 invoked by uid 22791); 28 Nov 2011 14:00:34 -0000 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 Received: from sam.nabble.com (HELO sam.nabble.com) (216.139.236.26) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 28 Nov 2011 14:00:00 +0000 Received: from isper.nabble.com ([192.168.236.156]) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1RV1kV-0003zx-QR for cygwin@cygwin.com; Mon, 28 Nov 2011 05:59:59 -0800 Message-ID: <32878103.post@talk.nabble.com> Date: Mon, 28 Nov 2011 14:01:00 -0000 From: gabier To: cygwin@cygwin.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.post@talk.nabble.com> X-IsSubscribed: yes 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 X-SW-Source: 2011-11/txt/msg00420.txt.bz2 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