From 9e44be4713866a69ab57e93a01532b1cf477d66e Mon Sep 17 00:00:00 2001 From: tg Date: Sat, 19 May 2007 16:35:02 +0000 Subject: [PATCH] =?UTF-8?q?oops,=20can't=20use=20single=20quotes=20inside?= =?UTF-8?q?=20of=20singly=20quoted=20string,=20of=20course=E2=80=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dot.mkshrc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dot.mkshrc b/dot.mkshrc index 6b18dd2..e587036 100644 --- a/dot.mkshrc +++ b/dot.mkshrc @@ -3,7 +3,7 @@ PS1='# '; [[ "$(ulimit -c 0; id -u 2>&-)" -eq 0 ]] || PS1='$ ' PS1='$(integer e=$?; ((e)) && print $e\|)${USER:=$(ulimit -c 0; id -un 2>&- || \ print nobody)}@${HOSTNAME:=nil}:$(local pfx=~ wd=${PWD:-$(builtin pwd)} - integer n=${COLUMNS:-80}/3; let n='n < 7 ? 7 : n' + integer n=${COLUMNS:-80}/3; let n="n < 7 ? 7 : n" [[ ${wd#$pfx} = $wd || $pfx = ?(/) ]] || wd=\~${wd#$pfx} pfx=; while (( (${#pfx} + ${#wd}) > n )); do if [[ $wd = */* ]]; then @@ -37,4 +37,4 @@ function Lstripcom { # place customisations between this line and the “: RCSID” line below -: $MirOS: src/bin/mksh/dot.mkshrc,v 1.13 2007/05/19 16:33:10 tg Exp $ +: $MirOS: src/bin/mksh/dot.mkshrc,v 1.14 2007/05/19 16:35:02 tg Rel $