Hello, please note, the bash(1) manpage describes when the ~/.profile is
read:

       When bash is invoked as an interactive login shell, or as a
       non-interactive shell with the --login option, it first reads
       and executes commands from the file /etc/profile, if that
       file exists.  After reading that file, it looks for
       ~/.bash_profile, ~/.bash_login, and ~/.profile, in that
       order, and reads and executes commands from the first one
       that exists and is readable.  The --noprofile option may be
       used when the shell is started to inhibit this behavior.


A shell started in a terminal is an interactive shell but not a login shell.

What you probably want is ~/.profile:

       When an interactive shell that is not a login shell is
       started, bash reads and executes commands from
       /etc/bash.bashrc and ~/.bashrc, if these files exist.  This
       may be inhibited by using the --norc option.  The --rcfile
       file option will force bash to read and execute commands from
       file instead of /etc/bash.bashrc and ~/.bashrc.

Thanks

** Changed in: gnome-session (Ubuntu)
       Status: New => Invalid

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to gnome-session in Ubuntu.
https://bugs.launchpad.net/bugs/1982030

Title:
  POSIX is broken

Status in gnome-session package in Ubuntu:
  Invalid

Bug description:
  It seems that ~/.profile is not sourced anymore when gnome-terminal is 
launched for the first time as it should be the case in the POSIX standard :
  https://www.gnu.org/software/bash/manual/html_node/Bash-Startup-Files.html

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnome-session/+bug/1982030/+subscriptions


-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to