X-Recipient: archive-cygwin AT delorie DOT 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 AT cygwin DOT com; run by ezmlm List-Id: 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 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 AT cygwin DOT com References: From: Marco Atzeri Message-ID: 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: 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