#147696 Making syslogout package less bash reliant

#147696#5
Date:
2002-05-21 19:39:24 UTC
From:
To:
I've been looking at using syslogout with different shells, since I'm a
die-hard zsh fan. I've made some local changes which are helping me.

In /etc/syslogout, I add

[[ -z $SHELL ]] && SHELL=bash
OURSHELL=`basename $SHELL`

And then I change each 'ls *.bash' to 'ls *.${OURSHELL}' in
/etc/syslogout.

This might not be the best solution for you, as it would necessitate a
Depends: on shellutils.

A better long-term solution would be (IMHO) to note a dependence on
POSIX shells, adjust the Depends: as appropriate (?), ensure that the
filetests/for-loop and similar in /etc/syslogout are POSIX-conformant,
set a default OURSHELL=posix and include a
/etc/syslogout.d/00Standard.posix which is POSIX-safe. Allow admins to
provide 00Standard.${OURSHELL} if they have specific per-shell needs,
but provide a ``good'' default 00Standard.posix .

Just my $0.02

#147696#10
Date:
2002-05-22 22:53:17 UTC
From:
To:
Hi Mike!
Wow, i'm impressed seeing that someone else besides me is actually using
this! :-)

I'll be looking into this when i find some spare time.  But please don't
hold your breath in the meantime... ;-)

                                  Thanks, P. *8^)