aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-06-21 11:47:27 +1200
committerTom Ryder <tom@sanctum.geek.nz>2018-06-21 11:47:37 +1200
commit1003a5b44711b3f3c4a3ca40082f6f4ddbe7567f (patch)
treeff1d97bbdfb39de0bd1a98b2a72634d37931cb45
parentUse simpler Vim :helptags build command (diff)
downloaddotfiles-1003a5b44711b3f3c4a3ca40082f6f4ddbe7567f.tar.gz
dotfiles-1003a5b44711b3f3c4a3ca40082f6f4ddbe7567f.zip
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.
-rw-r--r--bin/exm.sh3
1 files changed, 1 insertions, 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 "$@"