delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2021/01/05/09:28:28

X-Recipient: archive-cygwin AT delorie DOT com
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org DAA22385782C
Authentication-Results: sourceware.org;
dmarc=none (p=none dis=none) header.from=pdinc.us
Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=jpyeron AT pdinc DOT us
DKIM-Filter: OpenDKIM Filter v2.11.0 mail2.pdinc.us 105ERdJ7016281
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pdinc.us; s=default;
t=1609856860; bh=O5qYVZN9/88MG3yE806GuwXYW6wwTtINuL1/LBQRiaI=;
h=From:To:References:In-Reply-To:Subject:Date:From;
b=qwfDaItOYtC/reUYkJgu6RuGBtZ5aubmjc8BsE4XwATLA51Ab8h49YIw7Ry0u5DmG
zCbB9exsG4nrhs2ubJSNdRA7eUpwtwWFIStrKoHQir3qtC4n1cfvAi4+ojsHgINz9o
FlTKERb1/xrIk6VTtL/8EAbIseFA9+1Q2907FyZT/Em7XvQMp02lIqldNkNfyW2LrG
upviizS7eMY6YaQHGzqMcWD6NvEEacF6oWTU8uL72pT8B1SeRI4bus4qoz18MqY22T
au7Vr406IqP1czA1KM9MlutWbWLLWWOXPCnIjkGZqbDi7hNznx4saFdwkv5ior0wI9
s9ItepQBKirmA==
From: "Jason Pyeron" <jpyeron AT pdinc DOT us>
To: <cygwin AT cygwin DOT com>
References: <vriuzh1onxhb DOT fsf AT gavenkoa DOT example DOT com>
<744d526c-651f-a1d9-72af-f150478e732c AT towo DOT net>
In-Reply-To: <744d526c-651f-a1d9-72af-f150478e732c@towo.net>
Subject: RE: [cygwin] Re: Noticed that mintty starts non-login bash with
"Win+R mintty Enter".
Date: Tue, 5 Jan 2021 09:27:50 -0500
Message-ID: <09bf01d6e36e$f2694020$d73bc060$@pdinc.us>
MIME-Version: 1.0
X-Mailer: Microsoft Outlook 15.0
Thread-Index: AQHOA3OHR1qlA1VPzRnaQjIpWzZdkAHWiGIpqhwhhQA=
X-Spam-Status: No, score=-2.3 required=5.0 tests=BAYES_00, DKIM_SIGNED,
DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, KAM_INFOUSMEBIZ, SPF_HELO_PASS,
SPF_PASS, TXREP autolearn=no autolearn_force=no version=3.4.2
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on
server2.sourceware.org
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.29
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
Sender: "Cygwin" <cygwin-bounces AT cygwin DOT com>

> -----Original Message-----
> From: Thomas Wolff
> Sent: Tuesday, January 5, 2021 5:32 AM
> 
> Am 04.01.2021 um 23:33 schrieb Oleksandr Gavenko via Cygwin:
> > I interact with Cygwin via mintty launched as "Win+R mintty Enter".

I do not put Cygwin in my windows PATH, (anymore since about 10 years ago).

> >
> > ...
> > After looking into docs I got that mintty should be launched with a parameter "-".
> >
> > Probably it was always that way.
> Yes, but it might be appropriate to apply special handling for this case
> and imply login mode if started via Win+R.
> What do others think?

I use an environment where settings are lost at logoff, so I have become accustomed to launching it from the command prompt.

I have not found it too difficult to type

	c:\cygwin64\bin\mintty /bin/bash -l

> 
> > ================
> >
> > Checking POSIX standard on what might be defined in login shell:
> >
> > https://pubs.opengroup.org/onlinepubs/7908799/xbd/envvar.html (1997)
> > https://pubs.opengroup.org/onlinepubs/009696899/basedefs/xbd_chap08.html (2004)
> >
> > I noticed that USER is mentioned but LOGNAME is not only mentioned by
> > description is given:
> >
> >    The system shall initialize this variable at the time of login to be the
> >    user's login name.
> >
> > Cygwin's /etc/profile has:
> >
> >    # Set the user id
> >    USER="$(/usr/bin/id -un)"
> >
> > but there is nothing for LOGNAME... Shouldn't /etc/profile set LOGNAME too?
> Looks reasonable.
> --
> Problem reports:      https://cygwin.com/problems.html
> FAQ:                  https://cygwin.com/faq/
> Documentation:        https://cygwin.com/docs.html
> Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple


--
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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