git: 9front

Download patch

ref: 436b1d26447974f28296c7faa451b9b01bbfc069
parent: 579da332357798e3f033cb0c16d0e9876b35d0d9
author: cinap_lenrek <cinap_lenrek@localhost>
date: Fri May 20 23:42:13 EDT 2011

boot(8): fix null list in concatenation error for ! input

--- a/sys/src/9/boot/bootrc
+++ b/sys/src/9/boot/bootrc
@@ -57,9 +57,9 @@
 		}
 		if not bootargs=$nobootprompt
 		mn=`{echo $bootargs | awk -F! '{print $1}'}
-		ma=`{echo $bootargs | sed 's/[^!]+!?//'}
+		ma=`{echo $bootargs | sed 's/[^!]*!?//'}
 		for(i in `{seq 1 $#mt}){
-			if(~ $mt($i) m^$mn)
+			if(~ $mt($i) m$"mn)
 				mp=$$mt($i)
 		}
 	}
--