[exim-cvs] Testsuite: "echo -n" portability - use printf(1) …

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Exim Git Commits Mailing List
Datum:  
To: exim-cvs
Betreff: [exim-cvs] Testsuite: "echo -n" portability - use printf(1) if possible
Gitweb: http://git.exim.org/exim.git/commitdiff/4b1450820a2a2c54f9c5265b094a023ba80bd834
Commit:     4b1450820a2a2c54f9c5265b094a023ba80bd834
Parent:     fc6b96fae1afd051f9d34fa3e86169be4e05e5b2
Author:     Jeremy Harris <jgh146exb@???>
AuthorDate: Tue Nov 25 22:12:42 2014 +0000
Committer:  Jeremy Harris <jgh146exb@???>
CommitDate: Tue Nov 25 22:12:42 2014 +0000


    Testsuite: "echo -n" portability - use printf(1) if possible
---
 test/confs/0191  |    3 ++-
 test/stdout/0191 |    2 +-
 2 files changed, 3 insertions(+), 2 deletions(-)


diff --git a/test/confs/0191 b/test/confs/0191
index 1cbe7eb..410d2bf 100644
--- a/test/confs/0191
+++ b/test/confs/0191
@@ -34,7 +34,8 @@ smtp:
   driver = smtp
   port = PORT_S
   transport_filter = \
-    /bin/sh -c "cat >/dev/null; /bin/echo -n Line without end"
+    /bin/sh -c \
+    "cat >/dev/null; printf Line-without-end || /bin/echo -n Line-without-end"



# End
diff --git a/test/stdout/0191 b/test/stdout/0191
index 59474cf..1417996 100644
--- a/test/stdout/0191
+++ b/test/stdout/0191
@@ -12,7 +12,7 @@ RCPT TO:<userx@domain1>
250 Recipient OK
DATA
354 Send message
-Line without end
+Line-without-end
.
250 OK
QUIT