aboutsummaryrefslogtreecommitdiff
path: root/functions
diff options
context:
space:
mode:
authorJacob Winther <jacob.winther@gmail.com>2009-07-29 14:14:31 -0700
committerAaron Griffin <aaronmgriffin@gmail.com>2009-07-29 14:18:13 -0700
commite97ca08b2acabd6b2f327b44aa03670df929b770 (patch)
treec784263833be7c08c94c7ceba417a3c0a115424f /functions
parent7f643ce45cfa621165a67c6ad969a36d8fbd8924 (diff)
downloadinitscripts-e97ca08b2acabd6b2f327b44aa03670df929b770.tar.xz
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--functions2
1 files changed, 1 insertions, 1 deletions
diff --git a/functions b/functions
index ba37f57..1d51345 100644
--- a/functions
+++ b/functions
@@ -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}"
}