• dbx12@programming.dev
    link
    fedilink
    arrow-up
    2
    ·
    5 days ago

    The interesting thing is that bash allows writing this variable. I would’ve expected it to be readonly for obvious reasons.

    • poolcritter@pawb.social
      link
      fedilink
      arrow-up
      1
      ·
      5 days ago

      USER is just an environment variable in the environment block like any other; even if Bash didn’t allow changing it, any other program could.