diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2008-09-23 08:41:54 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2008-09-23 08:41:54 +0000 |
commit | d3c4108f30fd987724ccffd9559ea2f49ac57328 (patch) | |
tree | c3b6d260a1af979fffac64ad7a85c3ad5f057aa7 /Test | |
parent | c54e113d2885251fc4269331524532e02c7a7f6e (diff) | |
download | zsh-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')
-rw-r--r-- | Test/.distfiles | 1 | ||||
-rw-r--r-- | Test/B06fc.ztst | 11 |
2 files changed, 12 insertions, 0 deletions
diff --git a/Test/.distfiles b/Test/.distfiles index 6b72d8965..fcb61d7bd 100644 --- a/Test/.distfiles +++ b/Test/.distfiles @@ -13,6 +13,7 @@ B02typeset.ztst B03print.ztst B04read.ztst B05eval.ztst +B06fc.ztst C01arith.ztst C02cond.ztst C03traps.ztst 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 |