delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2011/11/28/09:00:48

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 <gab DOT net110 AT orange DOT fr>
To: cygwin AT cygwin DOT com
Subject: Re: Installation problems with home path and sshd
In-Reply-To: <CAHWeT-beBS5OhOgwNWXxeUP48hExNLsxrJOOaYS2G8miCKfrQw@mail.gmail.com>
MIME-Version: 1.0
References: <32877343 DOT post AT talk DOT nabble DOT com> <CAHWeT-beBS5OhOgwNWXxeUP48hExNLsxrJOOaYS2G8miCKfrQw AT mail DOT gmail 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



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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019