summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Drescher <adam.r.drescher@gmail.com>2016-10-07 11:42:14 -0500
committerAdam Drescher <adam.r.drescher@gmail.com>2016-10-07 11:42:14 -0500
commit577112870d616fb5e65feeefcb16e7889c4ece9d (patch)
treea4388363ee00b4024329876131cdd327112b0e1b
parent5b938e05c74ef0f6c162b1899b517440297996d6 (diff)
Replaced format string double quotes with single quotes to prevent the shell from running our provided format placeholders.
-rw-r--r--src/out_format.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/out_format.c b/src/out_format.c
index aea38c5..be08b29 100644
--- a/src/out_format.c
+++ b/src/out_format.c
@@ -320,15 +320,15 @@ static void print_help(void)
" Supported Escape Sequences: \\n, \\t, \\r, \\v, \\b, \\f, \\a\n" \
"\n" \
" Examples:\n" \
- " \"$(element:name)\\t$(attr:rx:bytes)\\t$(attr:tx:bytes)\\n\"\n" \
+ " '$(element:name)\\t$(attr:rx:bytes)\\t$(attr:tx:bytes)\\n'\n" \
" lo 12074 12074\n" \
"\n" \
- " \"$(element:name) $(attr:rxrate:packets) $(attr:txrate:packets)\\n\"\n" \
+ " '$(element:name) $(attr:rxrate:packets) $(attr:txrate:packets)\\n'\n" \
" eth0 33 5\n" \
"\n" \
- " \"Item: $(element:name)\\n\" \\\n" \
- " \"Bytes Rate: $(attr:rxrate:bytes)/$(attr:txrate:bytes)\\n\" \\\n" \
- " \"Packets Rate: $(attr:rxrate:packets)/$(attr:txrate:packets)\\n\"\n" \
+ " 'Item: $(element:name)\\n' \\\n" \
+ " 'Bytes Rate: $(attr:rxrate:bytes)/$(attr:txrate:bytes)\\n' \\\n" \
+ " 'Packets Rate: $(attr:rxrate:packets)/$(attr:txrate:packets)\\n'\n" \
" Item: eth0\n" \
" Bytes Rate: 49130/2119\n" \
" Packets Rate: 40/11\n" \