aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/test7.in
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test7.in')
-rw-r--r--tests/test7.in12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/test7.in b/tests/test7.in
index d642e71e..22f5d92c 100644
--- a/tests/test7.in
+++ b/tests/test7.in
@@ -110,3 +110,15 @@ if not echo skip1 > /dev/null
else if echo skip2 > /dev/null
echo "zeta 6.2"
end
+
+echo '###'
+
+# Ensure 'type' works
+# https://github.com/fish-shell/fish-shell/issues/513
+function fish_test_type_zzz
+ true
+end
+# Should succeed
+type fish_test_type_zzz >/dev/null ; echo $status
+# Should fail
+type -f fish_test_type_zzz >/dev/null ; echo $status