On Fri, Aug 05, 2022 at 03:37:41AM +0200, Theo Buehler wrote:
> On Fri, Aug 05, 2022 at 03:34:57AM +0200, Theo Buehler wrote:
> > If you want games, opt into it. They are very old, full of bugs and not
> > really maintained. It's very easy to get a PATH containing games via
> > /etc/skel. I think this is a poor default.
>
> Dropped a } by accident.
I think this is reasonable.
Adding to PATH at both ends is easy without knowing its default value,
removing much less so.
(We had add_path()/del_path() helpers in ksh.kshrc which I removed since
they were just broken...)
Grepping /usr/src for /usr/games doesn't show up any other place that
would need updating, but the way dot.cshrc does it shows I could've
missed something.
>
> Index: dot.cshrc
> ===================================================================
> RCS file: /cvs/src/etc/skel/dot.cshrc,v
> retrieving revision 1.10
> diff -u -p -r1.10 dot.cshrc
> --- dot.cshrc 24 Jan 2020 02:09:51 -0000 1.10
> +++ dot.cshrc 5 Aug 2022 01:37:02 -0000
> @@ -13,7 +13,7 @@ alias ll ls -lsA
> alias tset 'set noglob histchars=""; eval `\tset -s \!*`; unset noglob
> histchars'
> alias z suspend
>
> -set path = (~/bin /bin /sbin
> /usr/{bin,sbin,X11R6/bin,local/bin,local/sbin,games})
> +set path = (~/bin /bin /sbin /usr/{bin,sbin,X11R6/bin,local/bin,local/sbin})
>
> if ($?prompt) then
> # An interactive shell -- set some stuff up
> Index: dot.profile
> ===================================================================
> RCS file: /cvs/src/etc/skel/dot.profile,v
> retrieving revision 1.7
> diff -u -p -r1.7 dot.profile
> --- dot.profile 24 Jan 2020 02:09:51 -0000 1.7
> +++ dot.profile 5 Aug 2022 01:30:52 -0000
> @@ -2,5 +2,5 @@
> #
> # sh/ksh initialization
>
> -PATH=$HOME/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/X11R6/bin:/usr/local/bin:/usr/local/sbin:/usr/games
> +PATH=$HOME/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/X11R6/bin:/usr/local/bin:/usr/local/sbin
> export PATH HOME TERM
>