Message ID | 1333105086-6047-4-git-send-email-stefanha@linux.vnet.ibm.com |
---|---|
State | New |
Headers | show |
diff --git a/scripts/tracetool b/scripts/tracetool index a279c2c..5e77aa2 100755 --- a/scripts/tracetool +++ b/scripts/tracetool @@ -506,10 +506,12 @@ EOF i=1 for arg in $arglist do - # 'limit' is a reserved keyword - if [ "$arg" = "limit" ]; then - arg="_limit" - fi + # postfix reserved words with '_' + case "$arg" in + limit|in|next|self) + arg="${arg}_" + ;; + esac cat <<EOF $arg = \$arg$i; EOF