]> git.ipfire.org Git - thirdparty/bash.git/blobdiff - tests/func2.sub
Bash-4.3 patch 7
[thirdparty/bash.git] / tests / func2.sub
index 2f9d5ceea13b31bba34be86fd1bde212c81e4c1a..41a3844bdb72c662c4badab016d795065e98f67d 100644 (file)
@@ -15,3 +15,13 @@ type funcc
 funca
 funcb
 funcc
+
+# when not in posix mode, bash allows non-identifiers as function names
+set +o posix
+foo-bar()
+{
+       :;
+}
+
+declare -F foo-bar
+declare -f foo-bar