diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2018-06-21 11:47:27 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2018-06-21 11:47:37 +1200 |
commit | 1003a5b44711b3f3c4a3ca40082f6f4ddbe7567f (patch) | |
tree | ff1d97bbdfb39de0bd1a98b2a72634d37931cb45 /bin/exm.sh | |
parent | Use simpler Vim :helptags build command (diff) | |
download | dotfiles-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.
Diffstat (limited to 'bin/exm.sh')
-rw-r--r-- | bin/exm.sh | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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 "$@" |