$ | >

NAME environment variable: what is this for?

Hi, in my ubuntu WSL shell the "NAME" environment variable is set to my hostname.

user@myhost:~$ env | grep NAME
NAME=myhost
LOGNAME=user
user@myhost:~$ cat /etc/hostname
myhost

As far as I know, NAME is not a "standard" variable in unix-like environments.
This is causing me troubles with examples makefiles from the book "Test-Driven Development for Embedded C" by James Grenning. (It took me a while to figure out ...)

I'd like to know where this is set and if it is possible to disable it or update it to a less generic name.

I searched in /etc and .bash* but could not find anything.

Thanks

1 vote
Sign in
Check!
(thinking…)
Reset
or sign in with
  • facebook
  • google
    Password icon
    Signed in as (Sign out)

    We’ll send you updates on this idea

    sysopch shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →

    0 comments

    Sign in
    Check!
    (thinking…)
    Reset
    or sign in with
    • facebook
    • google
      Password icon
      Signed in as (Sign out)
      Submitting...

      Feedback and Knowledge Base