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>
This commit is contained in:
parent
60be795f0b
commit
703e01e6e2
@ -506,10 +506,12 @@ EOF
|
|||||||
i=1
|
i=1
|
||||||
for arg in $arglist
|
for arg in $arglist
|
||||||
do
|
do
|
||||||
# 'limit' is a reserved keyword
|
# postfix reserved words with '_'
|
||||||
if [ "$arg" = "limit" ]; then
|
case "$arg" in
|
||||||
arg="_limit"
|
limit|in|next|self)
|
||||||
fi
|
arg="${arg}_"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
cat <<EOF
|
cat <<EOF
|
||||||
$arg = \$arg$i;
|
$arg = \$arg$i;
|
||||||
EOF
|
EOF
|
||||||
|
Loading…
Reference in New Issue
Block a user