X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9C2B9388C01D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1609799626; bh=vPe1ax4Q4YPZYROyki7/GE15D09LpDmj8QHBE/sLKpU=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=Y1C7xXFwCXIi2/wKz5d2wlTepEb1slPNGIErDyBav3o5StdLsSDeWdXbfIJYx2jPY Z/KTlyojtUocly58SbroXJA06iqzIw5KjFuuyO8Hj4VBmuDbr0aLiaPv6HDsEdRYXx w2o2yF42oTNNnreqSidO0cIuTAGR40qVzTo41e2c= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org ED4D93861838 X-Injected-Via-Gmane: http://gmane.org/ To: cygwin AT cygwin DOT com Subject: Noticed that mintty starts non-login bash with "Win+R mintty Enter". Date: Tue, 05 Jan 2021 00:33:36 +0200 Organization: Oleksandr Gavenko , http://defun.work/ Message-ID: Mime-Version: 1.0 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (cygwin) Cancel-Lock: sha1:BiNxvkyLPep90IxRg3WAjzbgaRw= X-Spam-Status: No, score=3.0 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, FORGED_GMAIL_RCVD, FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS, KAM_DMARC_STATUS, KAM_OTHER_BAD_TLD, NML_ADSP_CUSTOM_MED, PDS_OTHER_BAD_TLD, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=no autolearn_force=no version=3.4.2 X-Spam-Level: ** 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 List-Archive: List-Post: List-Help: List-Subscribe: , From: Oleksandr Gavenko via Cygwin Reply-To: Oleksandr Gavenko Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "Cygwin" I interact with Cygwin via mintty launched as "Win+R mintty Enter". During first launch of "exim-config" script existed with an error: /usr/bin/exim-config: line 447: USER: unbound variable After looking into docs I got that mintty should be launched with a parameter "-". Probably it was always that way. ================ 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? -- http://defun.work/ -- 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