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