But if I try with slightly changed line:There is no warning, although I didn't scroll the whole output.perlbrew exec perl -wle 'print " A" x 1e0 for 1 .. 1e2' | less -S
perl -wle 'print " A" x 1e0 for 1 .. 1e2' is 300 bytes, while perl -wle 'print " A" x 1e3 for 1 .. 1e2' is 200100 bytes. Since you're piping the output of perl to another program, perl's output isn't line-based (see e.g. Suffering from Buffering), and so what I'm fairly certain is happening is that perl is simply outputting the 300 bytes in one go. Update: Because perl -wle '$|++; print " A" x 1e0 for 1 .. 1e2' isn't killed by SIGPIPE either, it may also have something to do with how much data a pipe can buffer, but I'm not an expert on that.
In reply to Re^3: perlbrew: Command [ ... ] terminated with exit code 0 ($? = 13)
by haukex
in thread perlbrew: Command [ ... ] terminated with exit code 0 ($? = 13)
by rsFalse
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |