From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail2.pdinc.us (mail2.pdinc.us [67.90.184.28]) by sourceware.org (Postfix) with ESMTPS id DAA22385782C for ; Tue, 5 Jan 2021 14:27:40 +0000 (GMT) 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@pdinc.us Received: from lovegrove (nsa1.pdinc.us [67.90.184.2]) (authenticated bits=0) by mail2.pdinc.us (8.14.4/8.14.4) with ESMTP id 105ERdJ7016281 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Tue, 5 Jan 2021 09:27:40 -0500 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" To: References: <744d526c-651f-a1d9-72af-f150478e732c@towo.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 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Outlook 15.0 Content-Language: en-us 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@cygwin.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Jan 2021 14:27:43 -0000 > -----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