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#59545: 29.0.50; Eshell fails to redirect output of sourced eshell file Date: Wed, 21 Dec 2022 21:26:48 +0200 Message-ID: <83h6xoa77r.fsf@gnu.org> References: <9f56f995-c03d-a10e-ac18-b873af8589dc@gmail.com> <87o7rx5bfk.fsf@gmx.de> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9261"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 59545@debbugs.gnu.org, milan.zimmermann@gmail.com, michael.albinus@gmx.de To: Jim Porter Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Dec 21 20:28:23 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 1p84lL-0002IK-8c for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 21 Dec 2022 20:28:23 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p84l2-0006UU-KH; Wed, 21 Dec 2022 14:28:04 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p84l0-0006U6-MN for bug-gnu-emacs@gnu.org; Wed, 21 Dec 2022 14:28:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p84l0-0002C7-E2 for bug-gnu-emacs@gnu.org; Wed, 21 Dec 2022 14:28:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1p84l0-0001UH-8h for bug-gnu-emacs@gnu.org; Wed, 21 Dec 2022 14:28:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 21 Dec 2022 19:28:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 59545 X-GNU-PR-Package: emacs Original-Received: via spool by 59545-submit@debbugs.gnu.org id=B59545.16716508275709 (code B ref 59545); Wed, 21 Dec 2022 19:28:02 +0000 Original-Received: (at 59545) by debbugs.gnu.org; 21 Dec 2022 19:27:07 +0000 Original-Received: from localhost ([127.0.0.1]:53539 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p84k6-0001U1-QT for submit@debbugs.gnu.org; Wed, 21 Dec 2022 14:27:07 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:43388) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p84k5-0001Te-BM for 59545@debbugs.gnu.org; Wed, 21 Dec 2022 14:27:06 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p84jz-00024w-O6; Wed, 21 Dec 2022 14:26:59 -0500 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=Rh7uldcKGY9zJfa6B5Qgmqz923/O7ckUISwxG6sG0LY=; b=Qqk4akGmUsRN meYRy01dEBaQxH/NYE5xPKY/SrZuA/PV1eeSM5P9RKHDe1VqIshlhAaWirbIGg7p5SQ2HkYRJOvuW FJ4NdnqiAXBKAVj2KjOTqz8SDnHy4zHcDcyG7ziOUABnA+vwJJ2ia0SxDO5xIkAI/1cIFBL6n4O0T wM26ynczQL7XNyQUMQoaPbtmvQOZDTTWgzRKDW4sbNKFGONixTa93JyLRbif53KGgBEqXrT8zYbfO V2TpEiUoPs9btAfZStP3Yzdct0jdbNWzQb6WHtyqli2fKOQT7QQ+WF53V1kRfyiQUcHb4TPt34EXY 79PXir7fPiGjCvaWtp9VYw==; Original-Received: from [87.69.77.57] (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 1p84jz-0004HF-5d; Wed, 21 Dec 2022 14:26:59 -0500 In-Reply-To: (message from Jim Porter on Wed, 21 Dec 2022 10:48:18 -0800) 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:251617 Archived-At: > Date: Wed, 21 Dec 2022 10:48:18 -0800 > Cc: 59545@debbugs.gnu.org, eliz@gnu.org, > Milan Zimmermann > From: Jim Porter > > However, I would have thought that you could write to NUL on MS Windows > without any special handling. The Emacs manual has this to say: > > "[On MS Windows,] referencing any file whose name matches a DOS > character device, such as NUL or LPT1 or PRN or CON, with or without any > file-name extension, will always resolve to those character devices, in > any directory. Therefore, only use such file names when you want to use > the corresponding character device." > > I'd expect that to mean that if you opened a buffer and tried to save it > as "NUL", it would just work, but instead I get: > > Write error: Bad file descriptor, c:/NUL It's a bug, unrelated to the actual writing. I fixed it now on the emacs-29 branch. You should be able now to save "NUL" on MS-Windows.