diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2007-07-03 17:06:04 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2007-07-03 17:06:04 +0000 |
commit | 876fa2c44e0a17b2d10a2547ac1d13687cfed520 (patch) | |
tree | f92ce7475c97f82a05e20e9ba8be9b83436c9b6b /Misc/job-control-tests | |
parent | 6fa964914d8be709b1145399108ef1535a0b3f39 (diff) | |
download | zsh-876fa2c44e0a17b2d10a2547ac1d13687cfed520.tar.gz zsh-876fa2c44e0a17b2d10a2547ac1d13687cfed520.tar.xz zsh-876fa2c44e0a17b2d10a2547ac1d13687cfed520.zip |
unposted: force latest version of files from vendor to main branch
Diffstat (limited to 'Misc/job-control-tests')
-rw-r--r-- | Misc/job-control-tests | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/Misc/job-control-tests b/Misc/job-control-tests index 7e35fba0b..ecb9a7694 100644 --- a/Misc/job-control-tests +++ b/Misc/job-control-tests @@ -29,3 +29,48 @@ while true; do sed -e 's/foo/bar/' Src/builtin.c >/dev/null; done # 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 + +# Try +# ^Z +# fg +# ^Z +# fg +fn() { + local a + while read a; do :; done + less "$@" +} +cat foo | fn bar + +# Try +# ^Z +# fg +fn() { + cat builtin.c +} +fn | while read a; do :; done + +# Try +# ^Z +# fg +# q +# ^Z +# fg +# q +fn() { + less builtin.c + echo done +} +x=2; while (( x-- )); do f; done + +# Try +# ^C +# This won't work because zcat doesn't tell us that it received a signal. +# But +# ^Z +# fg +# ^C (probably a second ^C is needed: if the continued zcat is still running) +# works. +# (See also the file Etc/BUGS) +while true; do zcat foo.gz > /dev/null; done + |