about summary refs log tree commit diff
path: root/Test/B06fc.ztst
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2008-09-23 08:41:54 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2008-09-23 08:41:54 +0000
commitd3c4108f30fd987724ccffd9559ea2f49ac57328 (patch)
treec3b6d260a1af979fffac64ad7a85c3ad5f057aa7 /Test/B06fc.ztst
parentc54e113d2885251fc4269331524532e02c7a7f6e (diff)
downloadzsh-d3c4108f30fd987724ccffd9559ea2f49ac57328.tar.gz
zsh-d3c4108f30fd987724ccffd9559ea2f49ac57328.tar.xz
zsh-d3c4108f30fd987724ccffd9559ea2f49ac57328.zip
Rocky Bernstein: 25727: allow fc non-interactively
Add sanity test for empty history
Diffstat (limited to 'Test/B06fc.ztst')
-rw-r--r--Test/B06fc.ztst11
1 files changed, 11 insertions, 0 deletions
diff --git a/Test/B06fc.ztst b/Test/B06fc.ztst
new file mode 100644
index 000000000..6195fd6ab
--- /dev/null
+++ b/Test/B06fc.ztst
@@ -0,0 +1,11 @@
+# Tests of fc command
+%prep
+
+ mkdir fc.tmp 
+ cd fc.tmp
+ print 'fc -l foo' >fcl
+ 
+%test
+  $ZTST_testdir/../Src/zsh ./fcl
+1:Checking that fc -l foo doesn't core dump history is empty
+?./fcl:fc:1: event not found: foo