Hi, the behaviour you describe is normal for any Korn shell, since the idioms you are trying to use are GNU bash extensions.
Instead of export PS1='\033[0;[EMAIL PROTECTED] \033[0;33m\w\033[0;39m $ ' you should use this (the lines 2 and 3 have a tab and a space inside the []): : ${HOSTNAME:=$(ulimit -c 0;hostname -s 2>&-)} [[ $HOSTNAME = @(localhost|*([ ])) ]] && HOSTNAME=$(ulimit -c 0;hostname 2>&-) [[ $HOSTNAME = @(localhost|*([ ])) ]] && HOSTNAME=noname export PS1=' [0;[EMAIL PROTECTED] [0;33m$PWD[0;39m $ ' If your mail programme mungles these lines, here's a long version: : ${HOSTNAME:=$(ulimit -c 0;hostname -s 2>&-)} [[ $HOSTNAME = @(localhost|*([ ])) ]] && HOSTNAME=$(ulimit -c 0;hostname 2>&-) [[ $HOSTNAME = @(localhost|*([ ])) ]] && HOSTNAME=noname nl=' ' ca=$(print \\001) cm=$(print \\r) esc=$(print \\033) export PS1="$ca$cm$ca$esc[0;[EMAIL PROTECTED] $ca$esc[0;33m$ca\$PWD$ca$esc[0;39m$ca$nl\$ " unset nl ca cm esc Have fun! bye, //mirabilos -- I believe no one can invent an algorithm. One just happens to hit upon it when God enlightens him. Or only God invents algorithms, we merely copy them. If you don't believe in God, just consider God as Nature if you won't deny existence. -- Coywolf Qi Hunt -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]