提交 703e01e6 编写于 作者: A Alon Levy 提交者: Stefan Hajnoczi

tracetool: dtrace: handle in and next reserved words

Signed-off-by: NAlon Levy <alevy@redhat.com>
Signed-off-by: NStefan Hajnoczi <stefanha@linux.vnet.ibm.com>
上级 60be795f
...@@ -506,10 +506,12 @@ EOF ...@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册