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

This commit is contained in:
cinap_lenrek 2011-05-21 03:42:13 +00:00
parent e7d3e20912
commit 1ac9d6ab0e

View file

@ -57,9 +57,9 @@ fn main{
}
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)
}
}