Hallo zusammen, ich möchte gerne bei einem Login etwas Sourcen. Dieses Sourcescript habe ich in der .bash_profile gesetzt: source /opt/opengroupware.org/OpenGroupware.org.sh Nur klappt das nicht. Warum, was mache ich falsch? Gruesse Stefan
Stefan Eggert wrote:
ich möchte gerne bei einem Login etwas Sourcen. Dieses Sourcescript habe ich in der .bash_profile gesetzt:
Es gibt ~/.bashrc und es gibt ~/.profile. Was ist bitte ~/.bash_profile? ~/.bashrc wird bei interaktiven Shells eingelesen, ~/.profile bei Login-Shells. Bei SuSE ist es glaube ich so, dass alles in ~/.bashrc geschrieben und diese von ~/.profile eingelesen wird - zumindest war das frueher so. CU, Th.
Am Mittwoch, 9. Juni 2004 09:31 schrieb Thomas Hertweck:
Stefan Eggert wrote:
ich möchte gerne bei einem Login etwas Sourcen. Dieses Sourcescript habe ich in der .bash_profile gesetzt:
Es gibt ~/.bashrc und es gibt ~/.profile. Was ist bitte ~/.bash_profile? ~/.bashrc wird bei interaktiven Shells eingelesen, ~/.profile bei Login-Shells. Bei SuSE ist es glaube ich so, dass alles in ~/.bashrc geschrieben und diese von ~/.profile eingelesen wird - zumindest war das frueher so
Hi! Das war es, habe meine ~/.bash_profile in ~/.bashrc umbenannt, jetzt gehts. Viele Gruesse Stefan
Hallo, Am Wed, 09 Jun 2004, Thomas Hertweck schrieb:
Es gibt ~/.bashrc und es gibt ~/.profile. Was ist bitte ~/.bash_profile?
==== man 1 bash ==== INVOCATION [..] 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. [..] When an interactive shell that is not a login shell is started, bash reads and executes commands from ~/.bashrc, if that file exists ==== -dnh -- 20: Multimediaentwickler Grafiker (Kristian Köhntopp)
David Haller wrote:
Am Wed, 09 Jun 2004, Thomas Hertweck schrieb:
Es gibt ~/.bashrc und es gibt ~/.profile. Was ist bitte ~/.bash_profile?
==== man 1 bash ==== INVOCATION [...] ====
Ulkig. Ein .bash_profile habe ich noch nie gebraucht, auf keinem mir bekannten System - der Sinn geht mir auch anhand der man-Page nicht so ganz auf. Aber egal - ich denke, man kommt ganz gut mit .profile und .bashrc aus. Danke jedenfalls fuer den Hinweis. CU, Th.
Hallo, Am Wed, 09 Jun 2004, Thomas Hertweck schrieb:
David Haller wrote:
Am Wed, 09 Jun 2004, Thomas Hertweck schrieb:
Es gibt ~/.bashrc und es gibt ~/.profile. Was ist bitte ~/.bash_profile? [..] Ulkig. Ein .bash_profile habe ich noch nie gebraucht, auf keinem mir bekannten System - der Sinn geht mir auch anhand der man-Page nicht so ganz auf. Aber egal - ich denke, man kommt ganz gut mit .profile und .bashrc aus. Danke jedenfalls fuer den Hinweis.
Ich denke, die ist dafuer da, falls man bash-spezifische Dinge erledigen will (und die nicht in die ~/.bashrc koennen). So kann man dann aus ~/.bash_profile die ~/.profile sourcen und dann bash-spezifsches machen, an dem sich andere shells, die aber auch ~/.profile lesen, verschlucken wuerden. -dnh -- I used to be convinced that MicroSquish shipped crap because they simply didn't give a flying fuck as long as the sheep kept buying their shit. Now, I'm convinced that they really do ship the best products they are capable of writing, and *that's* tragic. -- John C. Randolph, on MS Quality.
participants (3)
-
David Haller
-
Stefan Eggert
-
Thomas Hertweck