Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Zsh: [7] + 23074 suspended (tty output)
On 2018-09-16 10:40:20 +0200, Vincent Lefevre wrote:
> On 2018-09-15 21:06:56 +0200, TS wrote:
> > Test case, tested with 5.6.2:
> > https://bugs.debian.org/cgi-bin/bugreport.cgi?att=1;bug=908818;filename=.zshrc;msg=66
> >
> > result for me:
> > https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=908818#66
>
> I think I have noticed issues with "less" using zsh-5.6.1-10-g24bb465
> but I didn't remember what I did exactly and I couldn't reproduce
> them. I needed to do a fg.
The session in the terminal looks like that:
zira:~/software/mpfr> emacs <3:13:29
^Zzsh: exit 148
zsh: suspended eclient
zira:~/software/mpfr[TSTP]> bg <3:13:33
[1] + continued eclient
zira:~/software/mpfr> less src/Makefile <3:13:38
zsh: suspended (tty output) less src/Makefile
zira:~/software/mpfr[TTOU]> fg <3:13:42
[2] + continued less src/Makefile
zira:~/software/mpfr> <3:13:42
In short:
1. Run emacs[*] (with its X interface).
2. Type Ctrl-Z in the terminal to stop Emacs and get the prompt.
3. Type "bg".
4. View a file with "less"[*].
5. Quit Emacs (while "less" is still running).
6. Quit "less" (with 'q').
This yields a TTOU on "less" (see above). Note that 2+3 cannot be
replaced by the use of "emacs &".
[*] This is actually a shell function:
eclient () {
emulate -LR zsh
local display i
if [[ -n $GNUCLIENT_ENABLED ]]
then
display="$DISPLAY"
for i in "$@"
do
[[ "$i" == "-nw" ]] && unset display
done
[[ -n $display ]] && gnuclient "$@" 2> /dev/null || \emacs "$@"
else
\emacs "$@"
fi
}
with GNUCLIENT_ENABLED not defined.
--
Vincent Lefèvre <vincent@xxxxxxxxxx> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)
Messages sorted by:
Reverse Date,
Date,
Thread,
Author