aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2017-03-24 15:38:58 +1300
committerTom Ryder <tom@sanctum.geek.nz>2017-03-24 15:38:58 +1300
commit25d7fce47f1841c9dfabc05f4720c4c2b325f85b (patch)
tree7e6ece3d5dacf65d61bf928f06eb4e610216394f /bin
parentMove stderr block to within subst (diff)
downloaddotfiles-25d7fce47f1841c9dfabc05f4720c4c2b325f85b.tar.gz
dotfiles-25d7fce47f1841c9dfabc05f4720c4c2b325f85b.zip
Move redirect to correct process
Diffstat (limited to 'bin')
-rwxr-xr-xbin/exm2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/exm b/bin/exm
index f18da08b..4631c8fa 100755
--- a/bin/exm
+++ b/bin/exm
@@ -1,7 +1,7 @@
#!/bin/sh
# Prevent Vim's ex(1) implementation from clearing the screen
if [ -t 0 ] ; then
- ver=$(ex --version | sed '1{s/ .*//;q;}' 2>/dev/null)
+ ver=$(ex --version 2>/dev/null | sed '1{s/ .*//;q;}')
case $ver in
# Lie to Vim; tell it it's a dumb terminal, and that its required "cm"
# feature is invoked with a newline character.