From 61ea49c6dd19f1319644d2204a3e3d9b446a9798 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Fri, 2 Mar 2018 15:08:17 +0000 Subject: [PATCH] Fix cmp use. --- regress/control-client-size.sh | 8 ++++---- regress/new-session-size.sh | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/regress/control-client-size.sh b/regress/control-client-size.sh index cef48a0e..55f7eed1 100644 --- a/regress/control-client-size.sh +++ b/regress/control-client-size.sh @@ -13,7 +13,7 @@ $TMUX kill-server 2>/dev/null TMP=$(mktemp) OUT=$(mktemp) -trap "rm -f $TMP $OUT" 0 1 15 +#trap "rm -f $TMP $OUT" 0 1 15 $TMUX -f/dev/null new -d || exit 1 sleep 1 @@ -23,7 +23,7 @@ refresh -C 100,50 ls -F':#{session_width} #{session_height}' EOF grep ^: $TMP >$OUT -printf ":80 24\n:100 50\n"|cmp -s $OUT || exit 1 +printf ":80 24\n:100 50\n"|cmp -s $OUT - || exit 1 $TMUX kill-server 2>/dev/null $TMUX -f/dev/null new -d || exit 1 @@ -34,7 +34,7 @@ refresh -C 80,24 ls -F':#{session_width} #{session_height}' EOF grep ^: $TMP >$OUT -printf ":80 24\n:80 24\n"|cmp -s $OUT || exit 1 +printf ":80 24\n:80 24\n"|cmp -s $OUT - || exit 1 $TMUX kill-server 2>/dev/null cat <$TMP @@ -43,7 +43,7 @@ refresh -C 80,24 ls -F':#{session_width} #{session_height}' EOF grep ^: $TMP >$OUT -printf ":100 50\n:80 24\n"|cmp -s $OUT || exit 1 +printf ":100 50\n:80 24\n"|cmp -s $OUT - || exit 1 $TMUX kill-server 2>/dev/null exit 0 diff --git a/regress/new-session-size.sh b/regress/new-session-size.sh index f9394f35..5493054b 100644 --- a/regress/new-session-size.sh +++ b/regress/new-session-size.sh @@ -15,13 +15,13 @@ trap "rm -f $TMP" 0 1 15 $TMUX -f/dev/null new -d $TMP -printf "80 24\n"|cmp -s $TMP || exit 1 +printf "80 24\n"|cmp -s $TMP - || exit 1 $TMUX kill-server 2>/dev/null $TMUX -f/dev/null new -d -x 100 -y 50 $TMP -printf "100 50\n"|cmp -s $TMP || exit 1 +printf "100 50\n"|cmp -s $TMP - || exit 1 $TMUX kill-server 2>/dev/null exit 0