X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=tests%2Ffunc2.sub;h=41a3844bdb72c662c4badab016d795065e98f67d;hb=01657c6474ca4f90df0fbb47001e2e744aaaddb0;hp=2f9d5ceea13b31bba34be86fd1bde212c81e4c1a;hpb=28ef6c316f1aff914bb95ac09787a3c83c1815fd;p=thirdparty%2Fbash.git diff --git a/tests/func2.sub b/tests/func2.sub index 2f9d5ceea..41a3844bd 100644 --- a/tests/func2.sub +++ b/tests/func2.sub @@ -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