diff options
author | Jacob Winther <jacob.winther@gmail.com> | 2009-07-29 14:14:31 -0700 |
---|---|---|
committer | Aaron Griffin <aaronmgriffin@gmail.com> | 2009-07-29 14:18:13 -0700 |
commit | e97ca08b2acabd6b2f327b44aa03670df929b770 (patch) | |
tree | c784263833be7c08c94c7ceba417a3c0a115424f /functions | |
parent | 7f643ce45cfa621165a67c6ad969a36d8fbd8924 (diff) |
functions: Add -- to stat_append printf
printf causes scripts to fail when argument starts with a dash
Calling stat_append "- hello" causes the following error:
/etc/rc.d/functions: line 99: printf: - : invalid option
printf: usage: printf [-v var] format [arguments]
[FAIL]
Ref: FS#15713
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
Diffstat (limited to 'functions')
-rw-r--r-- | functions | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -96,7 +96,7 @@ stat_busy() { stat_append() { printf "${RESTORE_POSITION}" - printf "${C_MAIN}${1}${C_CLEAR}" + printf -- "${C_MAIN}${1}${C_CLEAR}" printf "${SAVE_POSITION}" } |