From fe012a22000c5511613ff8f2fb08623dc5a5583e Mon Sep 17 00:00:00 2001 From: Loic Dachary Date: Fri, 13 Nov 2015 18:47:31 +0100 Subject: [PATCH] tests: avoid bashism The shell used by the cli tests is not always bash. Not using the here-word is also more readable in this specific case. Signed-off-by: Loic Dachary --- src/test/cli/rbd/help.t | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/cli/rbd/help.t b/src/test/cli/rbd/help.t index 14fd23f0d88e..6457bded6c4a 100644 --- a/src/test/cli/rbd/help.t +++ b/src/test/cli/rbd/help.t @@ -59,7 +59,7 @@ -k [ --keyring ] arg path to keyring See 'rbd help ' for help on a specific command. - $ while read -r line; do echo rbd help $line ; rbd help $line; done <<< "$(rbd help | grep '^ [a-z]' | sed 's/^ \([a-z -]*[a-z]\).*/\1/g')" + $ rbd help | grep '^ [a-z]' | sed 's/^ \([a-z -]*[a-z]\).*/\1/g' | while read -r line; do echo rbd help $line ; rbd help $line; done rbd help bench-write usage: rbd bench-write [--pool ] [--image ] [--io-size ] [--io-threads ] [--io-total ] -- 2.47.3