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#57129: 29.0.50; Improve behavior of conditionals in Eshell Date: Tue, 16 Aug 2022 20:41:06 +0300 Message-ID: <83pmh0dr2l.fsf__47342.1437827469$1660673068$gmane$org@gnu.org> References: <1871347.6tgchFWduM@nimes> <838rnofgad.fsf@gnu.org> <4165399.mogB4TqSGs@nimes> <83wnb8dukz.fsf@gnu.org> <206e38df-2db4-a46a-e0ff-952bc8ab939c@cs.ucla.edu> <83sflwdsr2.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35741"; mail-complaints-to="usenet@ciao.gmane.io" Cc: jporterbugs@gmail.com, larsi@gnus.org, bug-gnulib@gnu.org, 57129@debbugs.gnu.org To: eggert@cs.ucla.edu, bruno@clisp.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Aug 16 20:04:22 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 1oO0vO-00095v-2x for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 16 Aug 2022 20:04:22 +0200 Original-Received: from localhost ([::1]:59526 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oO0vM-00010W-Us for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 16 Aug 2022 14:04:21 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37454) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oO0Zm-0003U5-JJ for bug-gnu-emacs@gnu.org; Tue, 16 Aug 2022 13:42:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:58477) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oO0Zm-0003Qg-AN for bug-gnu-emacs@gnu.org; Tue, 16 Aug 2022 13:42:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oO0Zm-0004NP-2k for bug-gnu-emacs@gnu.org; Tue, 16 Aug 2022 13:42:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 16 Aug 2022 17:42:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 57129 X-GNU-PR-Package: emacs Original-Received: via spool by 57129-submit@debbugs.gnu.org id=B57129.166067169016783 (code B ref 57129); Tue, 16 Aug 2022 17:42:02 +0000 Original-Received: (at 57129) by debbugs.gnu.org; 16 Aug 2022 17:41:30 +0000 Original-Received: from localhost ([127.0.0.1]:48226 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oO0ZF-0004Ma-Ic for submit@debbugs.gnu.org; Tue, 16 Aug 2022 13:41:29 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:52710) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oO0ZC-0004ML-5D for 57129@debbugs.gnu.org; Tue, 16 Aug 2022 13:41:28 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:55566) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oO0Z5-0003Mt-1c; Tue, 16 Aug 2022 13:41:19 -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=gQkGVMKUOCWrl0Dw8UOu9+jKbB/Ycss6QcuJ+vbWhhw=; b=PJeXgQnAq2cU S6Cw5bfGk1Ozbjjh03DwIQl3yznMrpr6xLbSTwURLMr+guyZS4S/IqjEU5W2dVRkaoIxZjCEFik2Z Q2xfu2gFfGh5JvUIi/cJBcdOCUZiifD48RV1ML3pqcNHxDXGWitSpka4P25qBjT50RoXcCPwkByWc TJ0g2vJP4kl//2z4Z7AJqpI5OVH0qMVIq1a93NZkDHhFyDVxDcReOatLLcYhQG1pVQISHZYkKQX1n MYRCzUV6X02AJSByo5G8YHNsCL1H6Zs3qx6attqaNksvNphusUd/MQM2vuxh1Fl3MYsVl995xpHuV +ac6GXFUc+ixYrKsHSsDgg==; Original-Received: from [87.69.77.57] (port=2417 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 1oO0Z4-0007I4-Ld; Tue, 16 Aug 2022 13:41:18 -0400 In-Reply-To: <83sflwdsr2.fsf@gnu.org> (message from Eli Zaretskii on Tue, 16 Aug 2022 20:04:49 +0300) 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:239985 Archived-At: > Cc: jporterbugs@gmail.com, larsi@gnus.org, bug-gnulib@gnu.org, > 57129@debbugs.gnu.org, bruno@clisp.org > Date: Tue, 16 Aug 2022 20:04:49 +0300 > From: Eli Zaretskii > > Therefore, if there's no intention to fix this in Gnulib, I'm going to > update the documentation of make-temp-file so that Emacs users and > programmers will be informed about that and will be careful enough to > side-step these issues in all the situations. (Not that I understand > why won't Gnulib provide consistent behavior on all platforms, but I > guess it's above my pay grade.) And btw, looking closer, I see that this is a regression in Emacs 28, which was caused by a change in Gnulib: the versions of tempname.c that we used up to and including Emacs 27.2 used gettimeofday and the PID to generate the file name, so it was more random than the code in current Gnulib, and in particular the sequence of generate file-name1 delete file-name1 generate file-name2 would produce file-name2 that is different from file-name1. With the current code in Gnulib, something similar happens only on glibc systems. So I hope the code in Gnulib's tempname.c will be amended to call clock_gettime or something similar, so that the names on non-glibc platforms could also be random. Or, failing that, at least that gen_tempname in glibc would behave identically to other systems, i.e. start from a fixed "random" value.