diff mbox series

common/rc: Prevent _scale_fsstress_args from consuming -n

Message ID 20191203121047394.YXCJ.12796.ppp.dion.ne.jp@dmta0009.auone-net.jp (mailing list archive)
State New, archived
Headers show
Series common/rc: Prevent _scale_fsstress_args from consuming -n | expand

Commit Message

Kusanagi Kouichi Dec. 3, 2019, 12:10 p.m. UTC
If first argument is -n, echo consumes it.

Signed-off-by: Kusanagi Kouichi <slash@ac.auone-net.jp>
---
 common/rc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/common/rc b/common/rc
index 6943f19f..7b954860 100644
--- a/common/rc
+++ b/common/rc
@@ -3433,7 +3433,7 @@  _scale_fsstress_args()
         esac
         shift
     done
-    echo $args
+    printf '%s\n' "$args"
 }
 
 #