changeset 630:ad57cd9cc810

'run' utility detach from terminal, need special care.
author Oleksandr Gavenko <gavenkoa@gmail.com>
date Tue, 07 Mar 2017 18:48:53 +0200
parents 815567721a82
children 82c5fc679c6c
files emacs/e
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/emacs/e	Tue Feb 14 23:36:32 2017 +0200
+++ b/emacs/e	Tue Mar 07 18:48:53 2017 +0200
@@ -37,7 +37,11 @@
 
 if [ -n "$COMSPEC" ]; then
     # We probably under Windows like OS. I like Cygwin emacs-w32.
-    exec run --quote emacsclient-w32 $args -- "$@"
+    case ${0##*/} in
+      # 'run' utility detach from terminal, need special care.
+      et) exec emacsclient-w32 $args -- "$@" ;;
+      *) exec run --quote emacsclient-w32 $args -- "$@" ;;
+    esac
 fi
 
 f=`readlink -f "$1"`