shithub: riscv

Download patch

ref: ea3c192bb5a4abd48f895fb48e6c318c233cc16f
parent: a4d818eedbea608e3d5f1909250f0563ecde6076
author: stanley lieber <stanley.lieber@gmail.com>
date: Wed Apr 9 17:26:43 EDT 2014

newt: always prefix single digit days with 0 in 'h' view

--- a/rc/bin/newt
+++ b/rc/bin/newt
@@ -26,6 +26,8 @@
 	if(! ~ $date(1) [0-9]*)
 		date=`{nshift $date}
 	da=$date(1)
+	if(~ $da [0-9])
+		da=0^$da
 	switch($date(2)){
 	case Jan;	mo=1
 	case Feb;	mo=2