Re: .bash_profile

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 25 Jun 2020 at 13:00, Patrick Dupre <pdupre@xxxxxxx> wrote:
In both cases,
 
"Run commad as a login shell" is checked.

What does "ps -f" show for bash in each terminal?   

Does "echo $-" give a string that includes the letter "i" in each terminal?
 
Are you using some form of remote access for one of the machines?

 
Sent: Thursday, June 25, 2020 at 5:55 PM
From: "Qiyu Yan" <yanqiyu@xxxxxxxxxxxxxxxxx>
To: "Community support for Fedora users" <users@xxxxxxxxxxxxxxxxxxxxxxx>
Subject: Re: .bash_profile
Patrick Dupre <pdupre@xxxxxxx> 于 2020年6月25日周四 下午10:40写道:
Hello,

What control the call to .bash_profile?
I am 2 machines and a different behavior while, I cannot see the
difference in the configuration.
Whether the shell is a "login shell", a login shell will source .bash_profile and a interactive shell will not.

On both machines .bash_profile is run in text terminal

But on one, it is also run in gnome-terminal
but not on the other one.
Gnome terminal has a option said "always run as login shell" or something like that. I am on my phone and can't remember it clearly, but you can switch if a gnome-terminal start bash as login shell.

I check the profile preferences, both are the same (command run: none checked).
-- 
George N. White III

_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux