Mailinglist Archive: opensuse (818 mails)
| < Previous | Next > |
Re: [opensuse] different types of shell scripts
- From: Lars Müller <lmuelle@xxxxxxx>
- Date: Sat, 24 Sep 2011 18:26:29 +0200
- Message-id: <20110924162629.GO25432@giles.fritz.box>
Moining,
On Sat, Sep 24, 2011 at 03:58:46PM +0200, David Haller wrote:
Are you getting more and more lazy? Must be the age. ;)
From /etc/profile.d/profile.sh
CWD_IN_USER_PATH=*)
test "$val" = "yes" || continue
test $UID -ge 100 && PATH=$PATH:.
I suggest to keep it simple stupid and to change the default of
CWD_IN_USER_PATH to no
@Rudi: As you added CWD_IN_USER_PATH only ten years back you might still
remember why these two settings are needed. ;)
Lars
--
Lars Müller [ˈlaː(r)z ˈmʏlɐ]
Samba Team
SUSE Linux, Maxfeldstraße 5, 90409 Nürnberg, Germany
On Sat, Sep 24, 2011 at 03:58:46PM +0200, David Haller wrote:
On Sat, 24 Sep 2011, Lars Müller wrote:
On Sat, Sep 24, 2011 at 12:36:20AM +0200, David Haller wrote:
[ 8< ]
I'm not 100% sure if that's the 11.4 default, as this is an upgrade
from 11.1 via 11.2 and that file might have been kept.
grep CWD_IN_ /var/adm/fillup-templates/sysconfig.suseconfig
CWD_IN_ROOT_PATH="no"
CWD_IN_USER_PATH="yes"
For openSUSE 11.4 and Factory.
Thank you!
So the default hasn't changed yet. I think it should. NOW! Let's have
a default of (implicitly)
CWD_IN_USER_PATH="no"
with 12.2 at latest. Oh, what I don't remember[1] is at what position
"." got added to PATH if that variable was set to "yes".
Are you getting more and more lazy? Must be the age. ;)
From /etc/profile.d/profile.sh
CWD_IN_USER_PATH=*)
test "$val" = "yes" || continue
test $UID -ge 100 && PATH=$PATH:.
If last, just
get rid of it, if first, change it to "last" with 12.1. That stupidity
has stuck around far far too long already. Those who want to shoot
themselves can still use it by setting CWD_IN_USER_PATH to "yes" ;)
I suggest to keep it simple stupid and to change the default of
CWD_IN_USER_PATH to no
Oh, and BTW: I plead for removing the variable for root altogether.
root should _never ever_ have "." in his PATH.
@Rudi: As you added CWD_IN_USER_PATH only ten years back you might still
remember why these two settings are needed. ;)
Lars
--
Lars Müller [ˈlaː(r)z ˈmʏlɐ]
Samba Team
SUSE Linux, Maxfeldstraße 5, 90409 Nürnberg, Germany
| < Previous | Next > |