Hi, I'm trying to learn more about bash and setting up some system customizations. It seems like OpenSuSE 10.0 might be using a setup that's different from the "typical" .bash_profile, .bash_logout, and .bashrc files? Is this correct? Some of the changes that I make to those files take, and some of them don't. It's hit or miss, but something is setting my PATH and other stuff, I just can't figure out what. Is it all coming out of the system /etc directory? Thanks, Rob Wright suserob@poncacity.net
Rob Wright wrote:
Hi,
I'm trying to learn more about bash and setting up some system customizations. It seems like OpenSuSE 10.0 might be using a setup that's different from the "typical" .bash_profile, .bash_logout, and .bashrc files? Is this correct? Some of the changes that I make to those files take, and some of them don't. It's hit or miss, but something is setting my PATH and other stuff, I just can't figure out what. Is it all coming out of the system /etc directory?
Many Linux books describe the relationship of those file and run sequence. Also, SUSE used local files, which is where you're supposed to make your changes, as the main files may get over written in an update.
On Monday April 17 2006 18:42, James Knott wrote:
Rob Wright wrote:
Hi,
I'm trying to learn more about bash and setting up some system customizations. It seems like OpenSuSE 10.0 might be using a setup that's different from the "typical" .bash_profile, .bash_logout, and .bashrc files?
Many Linux books describe the relationship of those file and run sequence. Also, SUSE used local files, which is where you're supposed to make your changes, as the main files may get over written in an update.
I may not have been quite clear enough in my original question. I have in front of me a copy of "Learning the bash Shell" from O'Reilly. I've renamed my ~/.profile file hoping to use the bash specific ~/.bash_profile and ~/.bashrc files. But I'm still getting values and settings that are different from what I've specified in the ~/.bash_profile. Looking at my ~/.profile, it looks to be not bash specific, is this the case? If so, can I make the system not read it, and to use only the bash files in my home directory. I'm trying to avoid editing the main files specifically because they may get over-written, and I'd like to be able to take my files with me if I go to another system. Thanks Rob
On Monday April 17 2006 18:42, James Knott wrote:
Rob Wright wrote:
Hi,
I'm trying to learn more about bash and setting up some system customizations. It seems like OpenSuSE 10.0 might be using a setup
On Tuesday, Rob Wright wrote: that's
different from the "typical" .bash_profile, .bash_logout, and .bashrc files?
Many Linux books describe the relationship of those file and run sequence. Also, SUSE used local files, which is where you're supposed to make your changes, as the main files may get over written in an update.
I may not have been quite clear enough in my original question. I have in front of me a copy of "Learning the bash Shell" from O'Reilly. I've renamed
my ~/.profile file hoping to use the bash specific ~/.bash_profile and ~/.bashrc files. But I'm still getting values and settings that are different from what I've specified in the ~/.bash_profile.
Looking at my ~/.profile, it looks to be not bash specific, is this the case? If so, can I make the system not read it, and to use only the bash files in
my home directory.
I'm trying to avoid editing the main files specifically because they may get over-written, and I'd like to be able to take my files with me if I go to another system.
Thanks
Rob
Have you checked the /etc files profile and profile.local? Those would be executed ahead of anything under a specific user such as .profile or .bash_rc. Greg Wallace
On Monday, April 17, 2006 @ 3:59 PM, Rob Wright wrote:
Hi,
I'm trying to learn more about bash and setting up some system customizations. It seems like OpenSuSE 10.0 might be using a setup that's different from the "typical" .bash_profile, .bash_logout, and .bashrc files? Is this correct? Some of the changes that I make to those files take, and some of them don't. It's hit or miss, but something is setting my PATH and other stuff, I just can't figure out what. Is it all coming out of the system /etc directory?
Thanks,
Rob Wright suserob@poncacity.net
I thought that, at the user level, the two main profiles were .bashrc and .profile, with .profile executing once at logon an .bashrc running every time you open a new shell. I'm not familiar with .bash_... files. Greg Wallace
* Greg Wallace
On Monday, April 17, 2006 @ 3:59 PM, Rob Wright wrote:
I'm trying to learn more about bash and setting up some system customizations. It seems like OpenSuSE 10.0 might be using a setup that's different from the "typical" .bash_profile, .bash_logout, and .bashrc files? Is this correct? Some of the changes that I make to those files take, and some of them don't. It's hit or miss, but something is setting my PATH and other stuff, I just can't figure out what. Is it all coming out of the system /etc directory?
I thought that, at the user level, the two main profiles were .bashrc and .profile, with .profile executing once at logon an .bashrc running every time you open a new shell. I'm not familiar with .bash_... files.
I guess that this is one reason there are man files. From 'man bash' INVOCATION section: 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. and there is more in the indicated section for those interested. -- Patrick Shanahan Registered Linux User #207535 http://wahoo.no-ip.org @ http://counter.li.org HOG # US1244711 Photo Album: http://wahoo.no-ip.org/gallery2
participants (4)
-
Greg Wallace
-
James Knott
-
Patrick Shanahan
-
Rob Wright