summary refs log tree commit diff
path: root/Test/Y04compgen.ztst
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2011-05-04 08:53:53 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2011-05-04 08:53:53 +0000
commit2e25dfb8fd38dbef0a306282ffab1d343ce3ad8d (patch)
treea878e23f4ce106b82449d6515d9f5e220f76fe31 /Test/Y04compgen.ztst
parent3355155e825504462167731696345093cae3697e (diff)
downloadzsh-2e25dfb8fd38dbef0a306282ffab1d343ce3ad8d.tar.gz
zsh-2e25dfb8fd38dbef0a306282ffab1d343ce3ad8d.tar.xz
zsh-2e25dfb8fd38dbef0a306282ffab1d343ce3ad8d.zip
Rocky Bernstein: 29135 (plus tweaks): compgen -W in bash completion
Diffstat (limited to 'Test/Y04compgen.ztst')
-rw-r--r--Test/Y04compgen.ztst21
1 files changed, 21 insertions, 0 deletions
diff --git a/Test/Y04compgen.ztst b/Test/Y04compgen.ztst
new file mode 100644
index 000000000..90dce6148
--- /dev/null
+++ b/Test/Y04compgen.ztst
@@ -0,0 +1,21 @@
+# Tests for bash compgen compatibility.
+
+%prep
+  if ( zmodload zsh/parameter ) >/dev/null 2>&1; then
+    . $ZTST_srcdir/compgentest
+    comptestinit -z $ZTST_testdir/../Src/zsh &&
+  else
+    ZTST_unimplemented="the zsh/parameter module is not available"
+  fi
+
+%test
+
+  comptest $': \t\t\t\t\t\t\t'
+0:bash compatibility: compgen -W
+>abc
+>abe
+>ab
+
+%clean
+
+  zmodload -ui zsh/parameter