[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] bug fix for scripting (update 2)

From: Bean
Subject: [PATCH] bug fix for scripting (update 2)
Date: Mon, 25 Jun 2007 20:16:37 +0800
User-agent: Mutt/1.5.13 (2006-08-11)

This patch fixes the following bugs:

1. Token parser

echo aa"bb"cc
old: aa"bb"
new:  aa"bb"cc

set BB=1
echo aa$BB
old: aa 1
new: aa1

set BB=1
echo ${BB}aa
old: 1 aa
new: 1aa

set AA=1
set BB=$AA
echo $BB
old: empty
new: 1

AA is not defined
echo $AA
old: trash
new: empty

2. function

function aa {
echo $AA
old: infinite loop
new: ok

function bb {
  echo Hello
old: Unknown command `echo'
new: ok

BTW, the echo module needs to be enabled manually in conf/common.rmk.


Attachment: grub2-parser-u2.diff
Description: Text document

reply via email to

[Prev in Thread] Current Thread [Next in Thread]