From 1003a5b44711b3f3c4a3ca40082f6f4ddbe7567f Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Thu, 21 Jun 2018 11:47:27 +1200 Subject: Simplify exm(1df) I thought shell script stripped \r from the end of variables, but that does not actually seem to be the case. I think it's just newlines. --- bin/exm.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/bin/exm.sh b/bin/exm.sh index 378b5baf..c25a611b 100644 --- a/bin/exm.sh +++ b/bin/exm.sh @@ -3,7 +3,6 @@ if [ -t 0 ] ; then # Lie to Vim; tell it it's a dumb terminal, and that its required "cm" # feature is invoked with a carriage return. - cmd=$(printf 'set t_cm=\r|') - set -- -T dumb --cmd "${cmd%|}" "$@" + set -- -T dumb --cmd "$(printf 'set t_cm=\r')" "$@" fi exec ex "$@" -- cgit v1.2.3