]> git.ipfire.org Git - thirdparty/mdadm.git/commitdiff
test: remove unnecessary bash-ism.
authorNeilBrown <neilb@suse.de>
Wed, 31 Oct 2012 22:56:15 +0000 (09:56 +1100)
committerNeilBrown <neilb@suse.de>
Tue, 20 Nov 2012 01:08:51 +0000 (12:08 +1100)
Bash allows '-' in function names, but other shells don't.
So use '_' - always safe.

Signed-off-by: NeilBrown <neilb@suse.de>
test

diff --git a/test b/test
index 24704548d26716c3a6befe127ead07ce8c8effb3..b381f0088b9a45f2516f94475d32338cd1ba0464 100755 (executable)
--- a/test
+++ b/test
@@ -69,13 +69,13 @@ cleanup() {
        done
 }
 
-ctrl-c() {
+ctrl_c() {
        exitonerror=1
 }
 
 do_setup() {
   trap cleanup 0 1 3 15
-  trap ctrl-c 2
+  trap ctrl_c 2
 
   devlist=
   for d in 0 1 2 3 4 5 6 7 8 9 10 11 12