diff options
author | Alon Levy <alevy@redhat.com> | 2012-03-29 23:35:36 +0200 |
---|---|---|
committer | Stefan Hajnoczi <stefanha@linux.vnet.ibm.com> | 2012-03-30 11:55:21 +0100 |
commit | 703e01e6e249e6d0a74e0cbab827b235032ec7f3 (patch) | |
tree | f5a798fb7e228ec8d161ee6cb5c947d3ed4154af | |
parent | 60be795f0b9ca06030b942367a82d80f125a50f7 (diff) |
tracetool: dtrace: handle in and next reserved words
Signed-off-by: Alon Levy <alevy@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
-rwxr-xr-x | scripts/tracetool | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/scripts/tracetool b/scripts/tracetool index a279c2c58b..5e77aa243d 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 |