diff options
author | Tanaka Akira <akr@users.sourceforge.net> | 1999-07-12 17:02:40 +0000 |
---|---|---|
committer | Tanaka Akira <akr@users.sourceforge.net> | 1999-07-12 17:02:40 +0000 |
commit | 1f6786ef7ae24ff858f52c6d4ac2bc23d529c0c1 (patch) | |
tree | 608d6471d477e8d4d9eafa62f521be50c3248f6e /Misc | |
parent | 7c670f1e6a0e154f0b1a2d4b6eed0e71c9404b56 (diff) | |
download | zsh-1f6786ef7ae24ff858f52c6d4ac2bc23d529c0c1.tar.gz zsh-1f6786ef7ae24ff858f52c6d4ac2bc23d529c0c1.tar.xz zsh-1f6786ef7ae24ff858f52c6d4ac2bc23d529c0c1.zip |
zsh-3.1.6-test-1 zsh-3.1.6-test-1
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/.distfiles | 3 | ||||
-rw-r--r-- | Misc/job-control-tests | 31 |
2 files changed, 33 insertions, 1 deletions
diff --git a/Misc/.distfiles b/Misc/.distfiles index a02614511..a02c324d6 100644 --- a/Misc/.distfiles +++ b/Misc/.distfiles @@ -1,4 +1,5 @@ DISTFILES_SRC=' .distfiles - c2z compctl-examples globtests globtests.ksh lete2ctl + c2z compctl-examples globtests globtests.ksh + job-control-tests lete2ctl ' diff --git a/Misc/job-control-tests b/Misc/job-control-tests new file mode 100644 index 000000000..7e35fba0b --- /dev/null +++ b/Misc/job-control-tests @@ -0,0 +1,31 @@ +# These are some tests for the job control code. The code chunks +# have to be run interactively. Some use files in the zsh distribution. + +# Try +# ^Z +# fg +if true; then cat Src/builtin.c | less; fi + +# Try +# ^Z +# fg +fn() { + if true; then cat Src/builtin.c | less; fi +} +fn + +# Try +# ^Z +# fg +# ^C +# then +# ^Z +# bg +# kill +while true; do sed -e 's/foo/bar/' Src/builtin.c >/dev/null; done + +# Try +# ^C +# ignoring the error messages from sed. +# ^Z is more of a problem since you have to catch the sed. +while true; do sed -e 's/foo/bar/' non-existent-file >/dev/null; done |