Am Die, 2001-12-18 um 23.29 schrieb J�rgen Seibel: > Martin Schmitt wrote: > > > > J�rgen Seibel wrote/schrieb: > > > > > Um dies zu vermeiden: Gibt es einen Befehl/Script, das die neu > > > editierte "/etc/profile" oder "/etc/profile.local" einliest? > > > > . /etc/profile > > geht net ;-( > > root@linu02:/etc # ls -l prof* > -rw-rw-rw- 1 root root 6970 Jun 30 09:33 profile > -rw-rw-rw- 1 root root 1059 Jun 20 2000 profile.dos > -rw-rw-rw- 1 root root 6954 Mar 24 2001 profile.js > -rw-rw-rw- 1 root root 3516 Dec 18 23:16 profile.local > -rw-rw-rw- 1 root root 6954 Mar 24 2001 profile.original > > jseibel@linu02:/etc > ./profile.local
zwischen dem punkt und dem /etc/profile ist ein blank. das bedeutet, da� du /etc/profile in der aktuellen shell ausf�hrst. wenn du es mit > bash /etc/profile ausf�hrst, wird daf�r eine neue shell ge�ffnet, d.h. alle exports und aliase gehen nat�rlich beim schlie�en dieser shell (also direkt nach dem ausf�hren) wieder verloren. du kannst es auch sourcen, dann wirkt es sich auch auf die aktuelle shell aus: > source /etc/profile -- Laurence Tonke Software AG mailto:[EMAIL PROTECTED] ---------------------------------------------------------------------------- PUG - Penguin User Group Wiesbaden - http://www.pug.org

