summaryrefslogtreecommitdiffstats
path: root/test/fixtures/_comp_xfunc/completions/xfunc-test1
diff options
context:
space:
mode:
Diffstat (limited to 'test/fixtures/_comp_xfunc/completions/xfunc-test1')
-rw-r--r--test/fixtures/_comp_xfunc/completions/xfunc-test112
1 files changed, 12 insertions, 0 deletions
diff --git a/test/fixtures/_comp_xfunc/completions/xfunc-test1 b/test/fixtures/_comp_xfunc/completions/xfunc-test1
new file mode 100644
index 0000000..50a35c0
--- /dev/null
+++ b/test/fixtures/_comp_xfunc/completions/xfunc-test1
@@ -0,0 +1,12 @@
+# Dummy completion file for _comp_xfunc tests -*- shell-script -*-
+
+if declare -F _comp_xfunc_xfunc_test1_utility1 &>/dev/null; then
+ echo "_comp_xfunc_xfunc_test1_utility1 is already defined"
+ return 1
+fi
+
+_comp_xfunc_xfunc_test1_utility1() {
+ printf 'util1['
+ printf '<%s>' "$@"
+ printf ']\n'
+}