1 # These are some tests for the job control code. The code chunks
2 # have to be run interactively. Some use files in the zsh distribution.
7 if true; then cat Src/builtin.c | less; fi
13 if true; then cat Src/builtin.c | less; fi
25 while true; do sed -e 's/foo/bar/' Src/builtin.c >/dev/null; done
29 # ignoring the error messages from sed.
30 # ^Z is more of a problem since you have to catch the sed.
31 while true; do sed -e 's/foo/bar/' non-existent-file >/dev/null; done
40 while read a; do :; done
51 fn | while read a; do :; done
64 x=2; while (( x-- )); do f; done
68 # This won't work because zcat doesn't tell us that it received a signal.
72 # ^C (probably a second ^C is needed: if the continued zcat is still running)
74 # (See also the file Etc/BUGS)
75 while true; do zcat foo.gz > /dev/null; done