1 | # Called from spec/ysh-builtins.test.sh |
2 | |
3 | shopt -s ysh:upgrade |
4 | |
5 | # Hm this preserves the newline? |
6 | seq 3 | while read --line { |
7 | write reply=$_reply # implicit |
8 | } |
9 | write a b | while read --line --with-eol (&myline) { |
10 | write --end '' myline=$myline |
11 | } |