public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Thomas Wolff <towo@towo.net>
To: cygwin@cygwin.com
Subject: Re: Noticed that mintty starts non-login bash with "Win+R mintty Enter".
Date: Tue, 5 Jan 2021 11:31:54 +0100	[thread overview]
Message-ID: <744d526c-651f-a1d9-72af-f150478e732c@towo.net> (raw)
In-Reply-To: <vriuzh1onxhb.fsf@gavenkoa.example.com>

Am 04.01.2021 um 23:33 schrieb Oleksandr Gavenko via Cygwin:
> I interact with Cygwin via mintty launched as "Win+R mintty Enter".
>
> ...
> 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?

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

  reply	other threads:[~2021-01-05 10:31 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-01-04 22:33 Oleksandr Gavenko
2021-01-05 10:31 ` Thomas Wolff [this message]
2021-01-05 14:27   ` [cygwin] " Jason Pyeron
2021-01-16 23:09     ` Oleksandr Gavenko
2021-01-07  7:34   ` Andrey Repin
2021-01-07 12:42     ` Kamran
2021-01-16 22:57       ` Oleksandr Gavenko

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=744d526c-651f-a1d9-72af-f150478e732c@towo.net \
    --to=towo@towo.net \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).