* Seems that bash 3.2 on Mac OS X doesn't know the \e

escape, so use \033 instead.

svn path=/nixpkgs/branches/stdenv-updates/; revision=31680
This commit is contained in:
Eelco Dolstra 2012-01-19 10:24:26 +00:00
parent d4d7931a62
commit fc89eefa50

View file

@ -394,12 +394,12 @@ nestingLevel=0
startNest() {
nestingLevel=$(($nestingLevel + 1))
echo -en "\e[$1p"
echo -en "\033[$1p"
}
stopNest() {
nestingLevel=$(($nestingLevel - 1))
echo -en "\e[q"
echo -en "\033[q"
}
header() {