X-Recipient: archive-cygwin@delorie.com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:subject:to:references:from:message-id:date
	:mime-version:in-reply-to:content-type
	:content-transfer-encoding; q=dns; s=default; b=sMZDwHT3oyuUsz4L
	k78wTJHPvyy+4erb0FXqP7USFupy7dvk6j3ReWj4AB1UoUIjzZuBHYdCOtv0WSe/
	Jwh4dlNyJRpaY11rNKO8gFSqZ8Tc8xTPdzIgnYNlh7jE1sDX6e2H9y4mAmX9qE8B
	QXDsdT2fhwv5qvxQcNyQAtViCfw=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:subject:to:references:from:message-id:date
	:mime-version:in-reply-to:content-type
	:content-transfer-encoding; s=default; bh=+H1IvETMZq2jtxOYuXch2j
	JAJhc=; b=SWy34nfxP98QxiJ19cuxbdUuTedmSY5fuz5XH7sAegJgRD4b9L3tLx
	wa8x1xykoAiE2qRfcTpheqZryfJNRhWT9LK/Lyhh/FxujLPG4bXXZsqclJxCaA1V
	bCi11P3qqr42y21RygzGxZx1kwjfbXsdmHlh0Mt60G9mhn9xf3XhE=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=2.1 required=5.0 tests=BAYES_00,BODY_8BITS,FREEMAIL_FROM,GARBLED_BODY,RCVD_IN_DNSWL_NONE,SPF_PASS,TIME_LIMIT_EXCEEDED autolearn=unavailable version=3.3.2 spammy=H*u:6.1, H*UA:6.1, tel, HContent-Transfer-Encoding:8bit
X-HELO: mail-wm0-f47.google.com
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;        d=1e100.net; s=20161025;        h=x-gm-message-state:subject:to:references:from:message-id:date         :user-agent:mime-version:in-reply-to:content-language         :content-transfer-encoding;        bh=fQdlgy+GDw2PWBV1FBbF4aDWbL1ooLo0r0DTzn+3674=;        b=OdVNMIEul2rJkGSR0u+ewA2MjOPKvfR/8dq0RmtQQlswmf732Se32vxwD0wGwdbJqi         tENCGgyiiGRDYyusO5W5Jr482IiuLfAlALYrrWwmpXeajqH4ysXxxJ/pEh8iZhWMNHyW         krKTomHIrV9tcq7v9srxkkxOrzF1jdHLkMcBJZ45TqQkwI8gcSCi/6HLUVjgDLGY0Fd5         +8V5sgb24vbaxv2loD/ia6sUjYZl94H0HU1W8hucQSJUmayGoVERTvHDfMMgJ7/tPIWp         bRw9cTQowGqraP8AlDiwue8gKmbPeUDK8YVCJ9sgp8tCXJ5x1RfmO8aPBEsZQ7YSNUvH         KbHA==
X-Gm-Message-State: AElRT7H9VMgap7FHYt6RK/tAgXCU8zhPXnAApIXsR6suDWd9sFbg7Pc8	7rz/Dx2hNrBlV/XIBXZzP5dPhQ==
X-Google-Smtp-Source: AG47ELuG1TDMX6nHDyZQWUfv9HPfG4h4TMlmbFSVGUg3892ff99Nwh6KIJNrmHJKTZGohXMkzUyQqQ==
X-Received: by 10.28.69.133 with SMTP id l5mr5561610wmi.100.1521366514257;        Sun, 18 Mar 2018 02:48:34 -0700 (PDT)
Subject: Re: cygstart does not pass correct ssh login to rsync
To: cygwin@cygwin.com
References: <trinity-78edb7bc-d71d-4d7b-a2db-553f4aa25e61-1521318057990@3c-app-mailcom-lxa15> <trinity-f16159ec-869c-40f6-afb5-097e6448adbd-1521327095818@3c-app-mailcom-lxa02>
From: Marco Atzeri <marco.atzeri@gmail.com>
Message-ID: <e680ea98-ffb7-5ee3-a094-6985bbf2379a@gmail.com>
Date: Sun, 18 Mar 2018 10:48:30 +0100
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0
MIME-Version: 1.0
In-Reply-To: <trinity-f16159ec-869c-40f6-afb5-097e6448adbd-1521327095818@3c-app-mailcom-lxa02>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
X-IsSubscribed: yes
Note-from-DJ: This may be spam

On 17/03/2018 23:51, John tel wrote:
> Thanks for your reply.
> I can see what you are asking this question.
> 
> Well, ultimately I need to run cygstart with the --hide flag because I want to start this in a hidden window.
> 
> Thanks
> 

bottom post here (and trim your reply please), using that will have 
immediately noticed you replied to your mail and not to mine.

The difference between running ssh from shell and with cygstart
is that cygstart asks windows to do it and so the new process loses
the environment link with the running shell.

Pstree shows the cygstart process on new arms

?─┬─mintty───bash───mintty───bash
   ├─mintty───bash───pstree
   └─mintty───bash


You can see the differences running

  cygstart mintty
  cygstart mintty -

and than using `set` for both terminal.
In the first case the process is not starting a login shell (the - for 
mintty) and the two environments are slight different.

For what you are trying to do, you could use cygstart to run a login 
shell that executes the ssh command.

Regards
Marco

--
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

