mirror of
https://github.com/powerline/powerline.git
synced 2025-07-30 01:05:42 +02:00
Use newline for dash, not CR
This commit is contained in:
parent
5c75bef18c
commit
c81ef95c27
@ -78,6 +78,10 @@ run() {
|
|||||||
"$@"
|
"$@"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# HACK: get newline for use in strings given that "\n" and $'' do not work.
|
||||||
|
NL="$(printf '\nE')"
|
||||||
|
NL="${NL%E}"
|
||||||
|
|
||||||
run_test() {
|
run_test() {
|
||||||
TEST_TYPE="$1"
|
TEST_TYPE="$1"
|
||||||
shift
|
shift
|
||||||
@ -105,7 +109,7 @@ run_test() {
|
|||||||
# …
|
# …
|
||||||
# prompt1> prompt2> …
|
# prompt1> prompt2> …
|
||||||
while read -r line ; do
|
while read -r line ; do
|
||||||
screen -S "$SESNAME" -p 0 -X stuff "$line"$(printf '\r')
|
screen -S "$SESNAME" -p 0 -X stuff "$line$NL"
|
||||||
sleep 1
|
sleep 1
|
||||||
done < tests/test_shells/input.$SH
|
done < tests/test_shells/input.$SH
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user