about summary refs log tree commit diff
path: root/Test/A02alias.ztst
diff options
context:
space:
mode:
authorSven Wischnowsky <wischnow@users.sourceforge.net>2001-04-02 12:30:15 +0000
committerSven Wischnowsky <wischnow@users.sourceforge.net>2001-04-02 12:30:15 +0000
commitf7da8d5efb53ef3952626d2f70097a1be935daf2 (patch)
tree3413a439b8c145983f01e88e7f3cd37b83591a23 /Test/A02alias.ztst
parentcbb62d4a3e384541887d245e5f258a47a930eece (diff)
downloadzsh-f7da8d5efb53ef3952626d2f70097a1be935daf2.tar.gz
zsh-f7da8d5efb53ef3952626d2f70097a1be935daf2.tar.xz
zsh-f7da8d5efb53ef3952626d2f70097a1be935daf2.zip
moved from ./Test/02alias.ztst
Diffstat (limited to 'Test/A02alias.ztst')
-rw-r--r--Test/A02alias.ztst23
1 files changed, 23 insertions, 0 deletions
diff --git a/Test/A02alias.ztst b/Test/A02alias.ztst
new file mode 100644
index 000000000..03c0a6cc1
--- /dev/null
+++ b/Test/A02alias.ztst
@@ -0,0 +1,23 @@
+%prep
+  alias foo=echo
+
+  alias -g bar=echo
+
+  alias '\bar=echo'
+
+%test
+  foo foo
+0:Basic aliasing
+>foo
+
+  bar bar
+0:Global aliasing
+>echo
+
+  \foo foo
+1:Not aliasing
+?ZTST_execchunk:2: command not found: foo
+
+  \bar \bar
+0:Aliasing with a backslash
+>bar