Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1diff --git a/tapview b/tapview 2index ad6a33a66d1..4cf9545d42f 100644 3--- a/tapview 4+++ b/tapview 5@@ -13,21 +13,6 @@ 6 # 7 # This is version 1.1 8 # A newer version may be available at https://gitlab.com/esr/tapview 9-# 10-# POSIX allows but does not mandate that -n suppresses emission of a 11-# trailing newline in echo. Thus, some shell builtin echos don't do 12-# that. Cope gracefully. 13-# shellcheck disable=SC2039 14-if [ "$(echo -n "a"; echo "b")" != "ab" ] 15-then 16- ECHO="echo" 17-elif [ "$(/bin/echo -n "a"; /bin/echo "b")" = "ab" ] 18-then 19- ECHO="/bin/echo" 20-else 21- echo "tapview: bailing out, your echo lacks -n support." 22- exit 3 23-fi 24 25 OK="." 26 FAIL="F" 27@@ -37,7 +22,7 @@ TODO_OK="u" 28 29 ship_char() { 30 # shellcheck disable=SC2039 31- "${ECHO}" -n "$1" 32+ echo -n "$1" 33 } 34 35 ship_line() { 36@@ -155,7 +140,7 @@ do 37 fi 38 done 39 40-/bin/echo "" 41+echo "" 42 43 if [ -z "$expect" ] 44 then