[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

PS1: Lost in quotes!!!



I'm losing my temper here -- why did the first prompt work normally
and the second looks fine, yet if I try to type more than one line,
it doesn't start a new one but starts overwriting the very same one
instead!?

andrej

#######################################
NC='\e[0m'
BLUE='\e[1;34m'

function jbs() {
if [ "$(jobs)" = "" ]
	then echo " "
else
	echo -e " :: ($(jobs | awk '{print $3}' | tr "\n" ",")\b)"
fi
}

#FIRST, WORKING PROMPT:
export PS1="[${BLUE}\h${NC}] \l"'$(jbs)\n \w \$'" "


#SECOND, NON-WORKING ONE:
export PS1="[\l::\W]"'$(jbs)'" \n[${BLUE}\h${NC}] "
#########################################

-- 
echo ${girl_name} > /etc/dumpdates


-- 
To UNSUBSCRIBE, email to debian-user-request@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org



Reply to: