This bash
snippet will print out the numbers 1 to 10:
$ for i in $(seq 1 10); do echo $i; done
1
2
3
4
5
6
7
8
9
10
When I try to use this with script
and less
like so:
$ script -q -c 'for i in $(seq 1 10); do echo $i; done' /dev/null | less
...I see this instead:
1
2
3
4
5
6
7
8
9
10
(END)
The usual less
prompt doesn't show up, either. What's going on here?
I'm doing this on Ubuntu 13.10, script
is script from util-linux 2.20.1
, less
is less 458 (GNU regular expressions)
.