shithub: riscv

Download patch

ref: 74b37c286f84e36ad7f6e8e482fb2a2203b7f0ed
parent: 5fd97c7d605e3d72232c11d1f93911f7bd2f772d
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Thu Apr 9 11:36:20 EDT 2015

bootrc: simplify bootargs splitting avoiding awk

--- a/sys/src/9/boot/bootrc
+++ b/sys/src/9/boot/bootrc
@@ -70,8 +70,9 @@
 		}
 		if not bootargs=$nobootprompt
 		nobootprompt=()
-		mn=`{echo $bootargs | awk -F! '{print $1}'}
-		ma=`{echo $bootargs | sed 's/[^!]*!?//'}
+		mn=`{echo $bootargs | sed 's,!, ,'}
+		ma=$mn(2-)
+		mn=$mn(1)
 		switch(m$"mn){
 		case $mt
 			mp=m$mn