From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#41788: 28.0.50; emacsclient -t doesn't work with vipe from moreutils Date: Mon, 06 Jun 2022 20:03:30 +0300 Message-ID: <83zgip7mhp.fsf@gnu.org> References: <288bd9d3-1c7c-e3fa-fd02-e1287f8329ec@gmail.com> <87wndtuc1k.fsf@gnus.org> <87r141hmww.fsf@igel.home> <87leu9sv7h.fsf@gnus.org> <87mtephi8z.fsf@igel.home> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20958"; mail-complaints-to="usenet@ciao.gmane.io" Cc: platon7pronko@gmail.com, larsi@gnus.org, 41788@debbugs.gnu.org To: Andreas Schwab Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jun 06 19:06:37 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nyGBY-0005JM-74 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 06 Jun 2022 19:06:36 +0200 Original-Received: from localhost ([::1]:36564 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nyGBX-0005WO-Ay for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 06 Jun 2022 13:06:35 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60350) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nyG94-0003gQ-9v for bug-gnu-emacs@gnu.org; Mon, 06 Jun 2022 13:04:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:42760) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nyG94-0000ME-1K for bug-gnu-emacs@gnu.org; Mon, 06 Jun 2022 13:04:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nyG93-0004MY-Ts for bug-gnu-emacs@gnu.org; Mon, 06 Jun 2022 13:04:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 06 Jun 2022 17:04:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41788 X-GNU-PR-Package: emacs Original-Received: via spool by 41788-submit@debbugs.gnu.org id=B41788.165453502916747 (code B ref 41788); Mon, 06 Jun 2022 17:04:01 +0000 Original-Received: (at 41788) by debbugs.gnu.org; 6 Jun 2022 17:03:49 +0000 Original-Received: from localhost ([127.0.0.1]:36657 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nyG8r-0004M2-Iy for submit@debbugs.gnu.org; Mon, 06 Jun 2022 13:03:49 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:47102) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nyG8p-0004Lj-IE for 41788@debbugs.gnu.org; Mon, 06 Jun 2022 13:03:48 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:41624) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nyG8j-0000IX-RT; Mon, 06 Jun 2022 13:03:41 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=8e7+yZuuhAWUYhq4JW615qdDLlaIbE0M3DCion5pxgg=; b=hFRvCzdNzGF/ UPKi6Wf2AIKPDXKEj/WZHjJZtFnytUEFpagnJN+P/FdWDyz2/PtYjrq5tcxmEz5QFfYX66LQkeSqv 6BX+v5vuI0oxPsRy03glDosMIgo+SlApMtAFzviU7c3Cf7ziB92Wmk5ix5DU0xPj9B08uKVHXT7qq Y1THG5uErFsGZ0xQ5UHoNsRYxhfGQvdRjM3oIi9WcerMKdaHLvv+kI3/Sh15YtW42jMhpjB4eQOYK aiiXXBrA4C9bu6Q2KvUHsgOadIWnhq3VVOE4PJxuXl8B1KK/z9YYUo91SmcMDJz6L5GK/rdJZ2xnd nqlV3TV2sx0VnLpd+28hrw==; Original-Received: from [87.69.77.57] (port=4779 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nyG8i-0002ke-3p; Mon, 06 Jun 2022 13:03:40 -0400 In-Reply-To: <87mtephi8z.fsf@igel.home> (message from Andreas Schwab on Mon, 06 Jun 2022 18:25:00 +0200) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:233808 Archived-At: > Resent-From: Andreas Schwab > Original-Sender: "Debbugs-submit" > Resent-CC: bug-gnu-emacs@gnu.org > Resent-Sender: help-debbugs@gnu.org > Cc: Platon Pronko , 41788@debbugs.gnu.org > From: Andreas Schwab > Date: Mon, 06 Jun 2022 18:25:00 +0200 > > On Jun 06 2022, Lars Ingebrigtsen wrote: > > > open(STDIN, " > open(OUT, ">&STDOUT") || die "save stdout: $!"; > > close STDOUT; > > open(STDOUT, ">/dev/tty") || die "reopen stdout: $!"; > > That associates the process with /dev/tty, not the real terminal. But > the running Emacs process usually does not have a controlling terminal, > thus it cannot open /dev/tty. It needs to know the real terminal to be > able to open a tty frame on it. So you are saying that, instead of using "/dev/tty", vipe should use the actual name of the terminal device, obtained via the equivalent of the 'tty' command? Or is this impossible for what vipe wants to do?