From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: zsh-workers-return-43494-ml=inbox.vuxu.org@zsh.org X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from primenet.com.au (ns1.primenet.com.au [203.24.36.2]) by inbox.vuxu.org (OpenSMTPD) with ESMTP id 5d076ba6 for ; Wed, 19 Sep 2018 03:38:38 +0000 (UTC) Received: (qmail 19726 invoked by alias); 19 Sep 2018 03:38:22 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: List-Unsubscribe: X-Seq: 43494 Received: (qmail 18914 invoked by uid 1010); 19 Sep 2018 03:38:22 -0000 X-Qmail-Scanner-Diagnostics: from www138.your-server.de by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(88.198.28.7):SA:0(-2.6/5.0):. Processed in 2.52803 secs); 19 Sep 2018 03:38:22 -0000 X-Envelope-From: debts@xk2c.de X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Subject: Re: Zsh: [7] + 23074 suspended (tty output) From: TS To: Bart Schaefer , Zsh hackers list , vincent@vinc17.net, p.w.stephenson@ntlworld.com References: <22d05309-5f67-4310-d035-b726ba2d617e@xk2c.de> <1e4a8fb7-1fdd-5505-1627-079c10a74321@xk2c.de> <20180916084020.GA19815@zira.vinc17.org> <20180918011645.GA16046@zira.vinc17.org> Message-ID: <84cb1deb-f29c-1579-26ed-1e3750d2023d@xk2c.de> Date: Wed, 19 Sep 2018 05:38:11 +0200 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/mixed; boundary="------------B6B8A41173EE539470C21337" Content-Language: de-DE X-Authenticated-Sender: yup4hing8ed1teph9@Xk2c.de X-Virus-Scanned: Clear (ClamAV 0.100.1/24954/Wed Sep 19 01:08:37 2018) --------------B6B8A41173EE539470C21337 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Hello Peter, when emacs is wrapped inside function, then emacs is dead when: ^Z bg Does not happen when emacs called w/o function. See minimal .zshrc attached. % su -l heinb Password: tosh% emacs zsh: suspended emacs tosh% bg [1] + continued emacs tosh% [1] + suspended (tty output) emacs tosh% jobs -l [1] + 20708 suspended (tty output) emacs tosh% fg %1 [1] + continued emacs tosh% eclient zsh: suspended eclient tosh% jobs -l [1] + 20718 suspended (signal) eclient tosh% bg [1] + continued eclient tosh% jobs -l [1] - 20718 running eclient tosh% fg %1 [1] - running eclient <<<#### here terminal is broken This is still even after 551ff842721d6ca83727dbe6cd40178f46cc8201 aka "43464: Another attachtty() fix." HTH kind regards, Thilo TS schrieb/wrote: > Hello Vincent, > > please refine your bugreport. I am not able to reproduce your report. > basically: emacs != eclient > > % su -l heinb > Password: > tosh% emacs > > zsh: suspended emacs > tosh% bg > [1] + continued emacs > tosh% > [1] + suspended (tty output) emacs > tosh% > > i now undestand upsteam. > > this is with zsh git tag 5.6.2 > > > > kind regards, > > Thilo > > Vincent Lefevre schrieb/wrote: >> 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. >> > --------------B6B8A41173EE539470C21337 Content-Type: text/plain; charset=UTF-8; name=".zshrc" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename=".zshrc" CnNldG9wdCBOT19nbG9iYWxyY3MKZWNsaWVudCAoKSB7Cgk9ZW1hY3MgIiRAIgp9CgoK --------------B6B8A41173EE539470C21337--