Document why `stuff` and waiting are used for dash

This commit is contained in:
ZyX 2014-07-20 02:04:44 +04:00
parent 855e33274e
commit 97e4ee6799
1 changed files with 6 additions and 0 deletions

View File

@ -41,6 +41,12 @@ run_test() {
sleep 1 sleep 1
screen -S "$SESNAME" -p 0 -X width 300 1 screen -S "$SESNAME" -p 0 -X width 300 1
if test "x${SH}" = "xdash" ; then if test "x${SH}" = "xdash" ; then
# If I do not use this hack for dash then output will look like
#
# command1
# command2
# …
# prompt1> prompt2> …
while read -r line ; do while read -r line ; do
screen -S "$SESNAME" -p 0 -X stuff "$line"$'\n' screen -S "$SESNAME" -p 0 -X stuff "$line"$'\n'
sleep 1 sleep 1