I'm suprised to still see Bourne syntax in system shell script "if [ ... ]"
rather than "if [[ ... ]]" use of back-quote instead of "$(...)". Here
backward compatibilite isn't really need.

I'm using ksh.

/etc/init.d/mandrake_consmap, echo is not portable!
# Switch console to correct map table. This file is sourced

if [ -n "$SYSFONTACM" ]; then
    case $SYSFONTACM in
        iso01*|iso02*|iso15*|koi*|latin2-ucw*)
            if [ "$TERM" = "linux" -a "`/sbin/consoletype`" = "vt" ]; then
                    case $SHELL in
                        *ksh*) print -n -- '\E(K' 2>/dev/null > /proc/$$/fd/0;;
                        *bash*) echo -n -e '\033(K' 2>/dev/null > /proc/$$/fd/0;;
                    esac
            fi
            ;;
    esac
fi

/etc/profile.d/ssh-client.sh, shopt is an bash internal command
# fix hanging ssh clients on exit
case $SHELL in
*ksh*)
        ;;
*bash*)
        if test -n "$ZSH_VERSION"; then
               setopt hup
        else
               shopt -s huponexit
        fi
        ;;
esac

============
Why in /etc/profile, the "x" mode is test? It's not necessary.

for i in /etc/profile.d/*.sh ; do
        if [ -x $i ]; then
                . $i
        fi
done
============

---

Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.330 / Virus Database: 184 - Release Date: 28/02/2002


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com

Reply via email to