billiob pushed a commit to branch master.

http://git.enlightenment.org/apps/terminology.git/commit/?id=49de9aea6423cfc04ea6920c4af2456f7e6fee8f

commit 49de9aea6423cfc04ea6920c4af2456f7e6fee8f
Author: Boris Faure <[email protected]>
Date:   Fri Dec 28 17:58:53 2018 +0100

    tests: avoid using $ in printf
---
 tests/cha.sh                       |  2 +-
 tests/cnl.sh                       |  6 +++---
 tests/cpl.sh                       |  6 +++---
 tests/cup.sh                       |  6 +++---
 tests/cursor-movements.sh          |  2 +-
 tests/dch.sh                       |  4 ++--
 tests/decaln.sh                    |  2 +-
 tests/decawm.sh                    |  4 ++--
 tests/decera-decfra-extra.sh       | 28 ++++++++++++++--------------
 tests/decera-no-restrict-cursor.sh | 10 +++++-----
 tests/decera-restrict-cursor.sh    | 10 +++++-----
 tests/decfra-no-restrict-cursor.sh | 12 ++++++------
 tests/decfra-restrict-cursor.sh    | 12 ++++++------
 tests/decsclm.sh                   |  2 +-
 14 files changed, 53 insertions(+), 53 deletions(-)

diff --git a/tests/cha.sh b/tests/cha.sh
index d834d00..85e98c7 100755
--- a/tests/cha.sh
+++ b/tests/cha.sh
@@ -1,7 +1,7 @@
 #!/bin/sh
 
 # fill space with E
-printf '\033[69;1;1;25;80$x'
+printf '\033[69;1;1;25;80\044x'
 
 #set color
 printf '\033[46;31;3m'
diff --git a/tests/cnl.sh b/tests/cnl.sh
index ff72c62..ac16dfe 100755
--- a/tests/cnl.sh
+++ b/tests/cnl.sh
@@ -1,6 +1,6 @@
 #!/bin/sh
 # fill space with E
-printf '\033[69;1;1;25;80$x'
+printf '\033[69;1;1;25;80\044x'
 #set color
 printf '\033[46;31;3m'
 
@@ -16,7 +16,7 @@ printf '\033[?69h'
 # set left/right margins:
 printf '\033[5;15s'
 # fill margin with @
-printf '\033[64;10;5;20;15$x'
+printf '\033[64;10;5;20;15\044x'
 
 # move
 printf '\033[19;19H'
@@ -28,7 +28,7 @@ printf 'e\033[5Ef'
 # set left/right margins:
 printf '\033[25;35s'
 # fill margin with @
-printf '\033[64;10;25;20;35$x'
+printf '\033[64;10;25;20;35\044x'
 # restrict cursor
 printf '\033[?6h'
 # move
diff --git a/tests/cpl.sh b/tests/cpl.sh
index 8243784..bee6929 100755
--- a/tests/cpl.sh
+++ b/tests/cpl.sh
@@ -1,6 +1,6 @@
 #!/bin/sh
 # fill space with E
-printf '\033[69;1;1;25;80$x'
+printf '\033[69;1;1;25;80\044x'
 #set color
 printf '\033[46;31;3m'
 
@@ -16,7 +16,7 @@ printf '\033[?69h'
 # set left/right margins:
 printf '\033[5;15s'
 # fill margin with @
-printf '\033[64;10;5;20;15$x'
+printf '\033[64;10;5;20;15\044x'
 
 # move
 printf '\033[12;19H'
@@ -28,7 +28,7 @@ printf 'e\033[5Ff'
 # set left/right margins:
 printf '\033[25;35s'
 # fill margin with @
-printf '\033[64;10;25;20;35$x'
+printf '\033[64;10;25;20;35\044x'
 # restrict cursor
 printf '\033[?6h'
 # move
diff --git a/tests/cup.sh b/tests/cup.sh
index 11224d2..b8d3f81 100755
--- a/tests/cup.sh
+++ b/tests/cup.sh
@@ -1,6 +1,6 @@
 #!/bin/sh
 # fill space with E
-printf '\033[69;1;1;25;80$x'
+printf '\033[69;1;1;25;80\044x'
 #set color
 printf '\033[46;31;3m'
 
@@ -18,7 +18,7 @@ printf '\033[?69h'
 # set left/right margins:
 printf '\033[5;15s'
 # fill margin with @
-printf '\033[64;10;5;20;15$x'
+printf '\033[64;10;5;20;15\044x'
 
 # move
 printf '\033[12;19HF'
@@ -26,7 +26,7 @@ printf '\033[12;19HF'
 # set left/right margins:
 printf '\033[25;35s'
 # fill margin with @
-printf '\033[64;10;25;20;35$x'
+printf '\033[64;10;25;20;35\044x'
 # restrict cursor
 printf '\033[?6h'
 # move
diff --git a/tests/cursor-movements.sh b/tests/cursor-movements.sh
index 4c353db..d817cf8 100755
--- a/tests/cursor-movements.sh
+++ b/tests/cursor-movements.sh
@@ -49,7 +49,7 @@ printf '\033[15;30s'
 # change color
 printf '\033[0m\033[45;32;1m'
 # fill restricted region with @
-printf '\033[64;10;15;20;30$x'
+printf '\033[64;10;15;20;30\044x'
 # change color back
 printf '\033[0m\033[46;31;3m'
 # restrict cursor
diff --git a/tests/dch.sh b/tests/dch.sh
index 6712f97..b3664dd 100755
--- a/tests/dch.sh
+++ b/tests/dch.sh
@@ -3,8 +3,8 @@
 # move to 0; 0
 printf '\033[H'
 # fill space
-for Y in $(seq 0 23); do
-   for X in $(seq 0 7); do
+for _ in $(seq 0 23); do
+   for _ in $(seq 0 7); do
       printf '\-/|\\~_>^<'
    done
 done
diff --git a/tests/decaln.sh b/tests/decaln.sh
index 84a3782..bb287c4 100755
--- a/tests/decaln.sh
+++ b/tests/decaln.sh
@@ -9,7 +9,7 @@ printf '\033[?69h'
 # set left/right margins:
 printf '\033[5;15s'
 # fill margin with @
-printf '\033[64;10;5;20;15$x'
+printf '\033[64;10;5;20;15\044x'
 # restrict cursor
 printf '\033[?6h'
 # reset wrap mode
diff --git a/tests/decawm.sh b/tests/decawm.sh
index 1060754..5827d80 100755
--- a/tests/decawm.sh
+++ b/tests/decawm.sh
@@ -21,7 +21,7 @@ printf '\033[?69h'
 # set left/right margins:
 printf '\033[5;15s'
 # fill margin with @
-printf '\033[64;10;5;20;15$x'
+printf '\033[64;10;5;20;15\044x'
 
 # set wrap mode
 printf '\033[?7h'
@@ -36,7 +36,7 @@ printf '\033[15;12Habcdefghijkl'
 # set left/right margins:
 printf '\033[25;35s'
 # fill margin with @
-printf '\033[64;10;25;20;35$x'
+printf '\033[64;10;25;20;35\044x'
 # restrict cursor
 printf '\033[?6h'
 # set wrap mode
diff --git a/tests/decera-decfra-extra.sh b/tests/decera-decfra-extra.sh
index 15cb633..8786f20 100755
--- a/tests/decera-decfra-extra.sh
+++ b/tests/decera-decfra-extra.sh
@@ -10,22 +10,22 @@ printf '\033[26;80HZ'
 printf '\033[H'
 
 #DECFRA
-printf '\033[64;10;10;;$x'
-printf '\033[65;;;8;8;$x'
-printf '\033[66;6;;150;3$x'
-printf '\033[67;;6;9;150$x'
+printf '\033[64;10;10;;\044x'
+printf '\033[65;;;8;8;\044x'
+printf '\033[66;6;;150;3\044x'
+printf '\033[67;;6;9;150\044x'
 # invalid coordinates
-printf '\033[68;30;20;10;10$x'
+printf '\033[68;30;20;10;10\044x'
 # invalid characters
-printf '\033[;10;10;20;20$x'
-printf '\033[31;10;10;20;20$x'
-printf '\033[127;10;10;20;20$x'
-printf '\033[159;10;10;20;20$x'
+printf '\033[;10;10;20;20\044x'
+printf '\033[31;10;10;20;20\044x'
+printf '\033[127;10;10;20;20\044x'
+printf '\033[159;10;10;20;20\044x'
 
 #DECERA
-printf '\033[15;15;;$z'
-printf '\033[;;3;3$z'
-printf '\033[6;;150;3$z'
-printf '\033[3;20;;150$z'
+printf '\033[15;15;;\044z'
+printf '\033[;;3;3\044z'
+printf '\033[6;;150;3\044z'
+printf '\033[3;20;;150\044z'
 # invalid coordinates
-printf '\033[30;20;10;10$z'
+printf '\033[30;20;10;10\044z'
diff --git a/tests/decera-no-restrict-cursor.sh 
b/tests/decera-no-restrict-cursor.sh
index 2a8d28a..6517970 100755
--- a/tests/decera-no-restrict-cursor.sh
+++ b/tests/decera-no-restrict-cursor.sh
@@ -3,7 +3,7 @@
 #set color
 printf '\033[46;31;3m'
 # fill space with E
-printf '\033[69;1;1;25;80$x'
+printf '\033[69;1;1;25;80\044x'
 # set top/bottom margins:
 printf '\033[10;20r'
 # allow left/right margins
@@ -11,10 +11,10 @@ printf '\033[?69h'
 # set left/right margins:
 printf '\033[5;15s'
 # top left corner
-printf '\033[3;5;12;7$z'
+printf '\033[3;5;12;7\044z'
 # top right corner
-printf '\033[8;12;13;17$z'
+printf '\033[8;12;13;17\044z'
 # bottom left corner
-printf '\033[18;3;22;8$z'
+printf '\033[18;3;22;8\044z'
 # top right corner
-printf '\033[17;14;23;18$z'
+printf '\033[17;14;23;18\044z'
diff --git a/tests/decera-restrict-cursor.sh b/tests/decera-restrict-cursor.sh
index 08d94b2..038bb74 100755
--- a/tests/decera-restrict-cursor.sh
+++ b/tests/decera-restrict-cursor.sh
@@ -3,7 +3,7 @@
 #set color
 printf '\033[46;31;3m'
 # fill space with E
-printf '\033[69;1;1;25;80$x'
+printf '\033[69;1;1;25;80\044x'
 # restrict cursor
 printf '\033[?6h'
 # set top/bottom margins:
@@ -13,10 +13,10 @@ printf '\033[?69h'
 # set left/right margins:
 printf '\033[5;15s'
 # top left corner
-printf '\033[3;5;12;7$z'
+printf '\033[3;5;12;7\044z'
 # top right corner
-printf '\033[8;12;13;17$z'
+printf '\033[8;12;13;17\044z'
 # bottom left corner
-printf '\033[18;3;22;8$z'
+printf '\033[18;3;22;8\044z'
 # top right corner
-printf '\033[17;14;23;18$z'
+printf '\033[17;14;23;18\044z'
diff --git a/tests/decfra-no-restrict-cursor.sh 
b/tests/decfra-no-restrict-cursor.sh
index cd32f4e..d7f5c0f 100755
--- a/tests/decfra-no-restrict-cursor.sh
+++ b/tests/decfra-no-restrict-cursor.sh
@@ -11,21 +11,21 @@ printf '\033[?69h'
 # set left/right margins:
 printf '\033[5;15s'
 # fill larger rect with @
-printf '\033[64;2;3;23;20$x'
+printf '\033[64;2;3;23;20\044x'
 # change color
 printf '\033[0m\033[45;32;1m'
 # top left corner with [
-printf '\033[91;3;5;12;7$x'
+printf '\033[91;3;5;12;7\044x'
 # top right corner with ]
-printf '\033[93;8;12;13;17$x'
+printf '\033[93;8;12;13;17\044x'
 # bottom left corner with (
-printf '\033[40;18;3;22;8$x'
+printf '\033[40;18;3;22;8\044x'
 # top right corner with )
-printf '\033[41;17;14;23;18$x'
+printf '\033[41;17;14;23;18\044x'
 # change color
 printf '\033[0m\033[44;33;4m'
 # one in center with #
-printf '\033[35;12;12;12;12$x'
+printf '\033[35;12;12;12;12\044x'
 
 # cursor to 0,0
 printf '\033[H'
diff --git a/tests/decfra-restrict-cursor.sh b/tests/decfra-restrict-cursor.sh
index ab9a8cc..795d317 100755
--- a/tests/decfra-restrict-cursor.sh
+++ b/tests/decfra-restrict-cursor.sh
@@ -13,21 +13,21 @@ printf '\033[?69h'
 # set left/right margins:
 printf '\033[5;15s'
 # fill larger rect with @
-printf '\033[64;2;3;23;20$x'
+printf '\033[64;2;3;23;20\044x'
 # change color
 printf '\033[0m\033[45;32;1m'
 # top left corner with [
-printf '\033[91;3;5;12;7$x'
+printf '\033[91;3;5;12;7\044x'
 # top right corner with ]
-printf '\033[93;8;12;13;17$x'
+printf '\033[93;8;12;13;17\044x'
 # bottom left corner with (
-printf '\033[40;18;3;22;8$x'
+printf '\033[40;18;3;22;8\044x'
 # top right corner with )
-printf '\033[41;17;14;23;18$x'
+printf '\033[41;17;14;23;18\044x'
 # change color
 printf '\033[0m\033[44;33;4m'
 # one in center with #
-printf '\033[35;12;12;12;12$x'
+printf '\033[35;12;12;12;12\044x'
 
 # cursor to 0,0
 printf '\033[H'
diff --git a/tests/decsclm.sh b/tests/decsclm.sh
index d5bc275..194448c 100755
--- a/tests/decsclm.sh
+++ b/tests/decsclm.sh
@@ -1,7 +1,7 @@
 #!/bin/sh
 
 # fill space with E
-printf '\033[69;1;1;25;80$x'
+printf '\033[69;1;1;25;80\044x'
 
 # set scrolling mode to fast
 printf '\033[?4l'

-- 


Reply via email to