about summary refs log tree commit diff
path: root/Test/A02alias.ztst
diff options
context:
space:
mode:
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