Re: Another possible slink goal (multipackages users profile)
Martin Schulze <joey@kuolema.Infodrom.North.DE> wrote:
> But the system administrator has to know how this works for bourne
> shells, c shells, z shells, k shells, rc, es etc. I for myself know
> bourne shells, well, if I'm reminded also c shells but here it ends.
>
> If I knew, hook it up at /etc/env and call update-env afterwards
> and you're done, I would be happy.
$ su -
# cd /usr/bin
# dpkg-divert --divert es.real --rename es
# ls es*
# cat >es; chmod 755 es
#!/bin/sh
# run /etc/profile if login shell
case "$0" in -*) . /etc/profile;; esac
exec /usr/bin/es.real "$@"
^D
# ^D
There you go: es now respects /etc/profile.
[Ok, I should test this to make sure I didn't make any silly mistakes,
but I'm just trying to show you an approach, not make my system behave
this way.]
--
Raul
--
To UNSUBSCRIBE, email to debian-devel-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Reply to: