From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: zsh-workers-return-43500-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 18ad757d for ; Wed, 19 Sep 2018 18:15:52 +0000 (UTC) Received: (qmail 4168 invoked by alias); 19 Sep 2018 18:15:39 -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: 43500 Received: (qmail 28016 invoked by uid 1010); 19 Sep 2018 18:15:39 -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.37293 secs); 19 Sep 2018 18:15:39 -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) To: Peter Stephenson Cc: Bart Schaefer , Zsh hackers list , vincent@vinc17.net 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> <84cb1deb-f29c-1579-26ed-1e3750d2023d@xk2c.de> <20180919171219.29596839@pws-HP.localdomain> From: TS Message-ID: Date: Wed, 19 Sep 2018 20:15:24 +0200 MIME-Version: 1.0 In-Reply-To: <20180919171219.29596839@pws-HP.localdomain> Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 7bit X-Authenticated-Sender: yup4hing8ed1teph9@Xk2c.de X-Virus-Scanned: Clear (ClamAV 0.100.1/24957/Wed Sep 19 15:59:33 2018) Hello, Peter Stephenson schrieb/wrote: >> 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 > > I'm not quite sure what you're doing here, Ok will write down as detailed as possible: First i have an user with absolute no configuration apart from the .zshrc given before. That is to make sure i test in as clean as possible environment. For that i now moved the "setopt NO_globalrcs" from .zshrc to .zshenv to make even cleaner. commented lines are, well comments: ## I then login as that user: % su -l heinb Password: ## I start emacs and press ^z tosh% emacs zsh: suspended emacs ## enter bg at prompt tosh% bg [1] + continued emacs tosh% [1] + suspended (tty output) emacs ## verify backgrounded jobs tosh% jobs -l [1] + 3179 suspended (tty output) emacs ## foreground emacs again and normal quit aka ^x^c tosh% fg %1 [1] + continued emacs tosh% ## now the same sequence with function: tosh% which eclient eclient () { =emacs "$@" } ## I start eclient and press ^z tosh% eclient zsh: suspended eclient ## enter bg at prompt tosh% bg [1] + continued eclient ## verify backgrounded jobs tosh% jobs -l [1] - 3289 running eclient ## foreground eclient again tosh% fg %1 [1] - running eclient ^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C After that emacs does not come back and terminal is not useable anymore, prompt does not appear and ^c does not help to return. If can help by testing or other informations just let me know. In case of trace or so i will need detailed instructions what to do but will happily help. > This doesn't appear to be the problem Vincent was reporting, which I > can't get to happen with that minimal eclient(). In this case sorry Vicent for the complaint. Actually by trying to figuring out an easy way to reproduce your issue we potential found an other one. I am confidant that is half way to fix that, too. Which is good IMHO. kind regards, Thilo