[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: misbehavior in shell window with ksh
From: |
Tino Calancha |
Subject: |
Re: misbehavior in shell window with ksh |
Date: |
Tue, 2 May 2017 22:03:17 +0900 (JST) |
User-agent: |
Alpine 2.20 (DEB 67 2015-01-07) |
On Mon, 1 May 2017, Mike Kupfer wrote:
Stephen Berman wrote:
Could this be related to some of your shell customizations?
Having EDITOR set to emacs (or emacsclient) seems to be required for me
to reproduce the problem.
$ export EDITOR=emacs
$ emacs -Q -nw
=> problem reproduces
$ emacs -Q -nw (w/o EDITOR set)
M-x shell RET
export EDITOR=emacs RET
ksh RET
=> problem reproduces
$ export EDITOR=emacs
$ emacs -Q -nw
M-x shell RET
unset EDITOR RET
ksh RET
=> problem does not reproduce
Thanks. I can reproduce the issue if i set EDITOR as you do.
*) Originally, with EDITOR set to
'/home/calancha/bin/edit'
i don't see the bug.
M-x emacs -Q RET
M-x shell RET
$ ksh RET
$ echo $EDITOR
/home/calancha/bin/edit
$ export EDITOR=$EDITOR ; No issue.
**) If i set EDITOR equal to some unexistant file like
'foo', i don't see the bug (but it depends of the name).
M-x emacs -Q RET
M-x shell RET
$ ksh RET
$ [ "" != "$(which emasc)" ] || [ "" != "$(which foo)" ] || echo "Both unset"
Both unset
$ export EDITOR=foo ; no issue
$ export EDITOR=emasc ; no issue
***) If i set EDITOR to some unexistant file containing some keywords,
then i might the issue:
M-x emacs -Q RET
M-x shell RET
$ ksh RET
$ [ "" != "$(which foo-vi)" ] || [ "" != "$(which foo-emacs)" ] || echo "Both
unset"
Both unset
$ export EDITOR=foo-vi ; It shows the bug.
$ export EDITOR=foo-emacs ; Same.
****) Once the bug appears, reseting EDITOR to the original value
doesn't help. You must kill the buffer and call again:
M-x shell.
M-x emacs -Q RET
M-x shell RET
$ ksh RET
$ EDITOR_ORIG=$EDITOR
$ export EDITOR=foo-emacs ; It shows the bug.
$ export EDITOR=$EDITOR_ORIG ; It doesn't help.
Regards,
Tino
- Re: misbehavior in shell window with ksh, (continued)
- Re: misbehavior in shell window with ksh, Eli Zaretskii, 2017/05/02
- Re: misbehavior in shell window with ksh, Stephen Berman, 2017/05/02
- Re: misbehavior in shell window with ksh, Eli Zaretskii, 2017/05/03
- Re: misbehavior in shell window with ksh, Stephen Berman, 2017/05/04
- Re: misbehavior in shell window with ksh, Eli Zaretskii, 2017/05/04
- Re: misbehavior in shell window with ksh, Mike Kupfer, 2017/05/04
- Re: misbehavior in shell window with ksh, Eli Zaretskii, 2017/05/05
- Re: misbehavior in shell window with ksh, Mike Kupfer, 2017/05/06
- Re: misbehavior in shell window with ksh, Eli Zaretskii, 2017/05/09
- Re: misbehavior in shell window with ksh, Mike Kupfer, 2017/05/01
- Re: misbehavior in shell window with ksh,
Tino Calancha <=
Re: misbehavior in shell window with ksh, Tino Calancha, 2017/05/01