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,gmane.comp.lib.gnulib.bugs Subject: bug#57129: 29.0.50; Improve behavior of conditionals in Eshell Date: Tue, 16 Aug 2022 20:47:10 +0300 Message-ID: <83o7wkdqsh.fsf@gnu.org> References: <1871347.6tgchFWduM@nimes> <838rnofgad.fsf@gnu.org> <4165399.mogB4TqSGs@nimes> <83wnb8dukz.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24114"; mail-complaints-to="usenet@ciao.gmane.io" Cc: bug-gnulib@gnu.org, larsi@gnus.org, bruno@clisp.org, 57129@debbugs.gnu.org, jporterbugs@gmail.com To: Paul Eggert Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Aug 16 19:54:47 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 1oO0m6-00066t-6i for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 16 Aug 2022 19:54:46 +0200 Original-Received: from localhost ([::1]:57758 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oO0m5-0005Ei-3r for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 16 Aug 2022 13:54:45 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38216) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oO0fb-0003ZM-5K for bug-gnu-emacs@gnu.org; Tue, 16 Aug 2022 13:48:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:58486) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oO0fa-0004Dz-O4 for bug-gnu-emacs@gnu.org; Tue, 16 Aug 2022 13:48:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oO0fa-0004Yl-FY for bug-gnu-emacs@gnu.org; Tue, 16 Aug 2022 13:48: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:48: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.166067205517376 (code B ref 57129); Tue, 16 Aug 2022 17:48:02 +0000 Original-Received: (at 57129) by debbugs.gnu.org; 16 Aug 2022 17:47:35 +0000 Original-Received: from localhost ([127.0.0.1]:48235 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oO0f8-0004WC-Rr for submit@debbugs.gnu.org; Tue, 16 Aug 2022 13:47:35 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:53464) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oO0f2-0004Vr-Q7 for 57129@debbugs.gnu.org; Tue, 16 Aug 2022 13:47:32 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:49100) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oO0ew-0004BK-0U; Tue, 16 Aug 2022 13:47:22 -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=GVjEeqEP4gCWuxKz6O9x1MwgFwF0p2zZBzG3Jt+9JeM=; b=KjY+WtlJzgMp Fu9+HMgOaj2yZw2tLmtbYK7/SRyeAyBMgJX6izioFz1n9M7Gl3bJ8KFFAwifHi6jLS6ucXQikbiQb XZMFztXXIyC0lsRPR6hAxoglJ0jZPySM07DWmPcdn8+nqV9B9FTriZI0U7Y4Qm+Cie47BTRooIAX5 40oaY6VIizB4/HA7Tt+2niwDMW9G2Dr9r9uCAnIz1pxOusVSYH1xCu3Mq9A/htHRtaTg3Zcd6ryNv nuSU+7g12ugoJsw3GJBBbDngWJrLVOdiv465CrMP7hnRXKlhvqyMJVHEaIAQtwNbuEqqOmh9t5Lov 8foX+hmU7JnMNg6TFqGrsA==; Original-Received: from [87.69.77.57] (port=2788 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 1oO0ev-0007u2-F0; Tue, 16 Aug 2022 13:47:21 -0400 In-Reply-To: (message from Paul Eggert on Tue, 16 Aug 2022 10:25:57 -0700) 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:239984 gmane.comp.lib.gnulib.bugs:46147 Archived-At: > Date: Tue, 16 Aug 2022 10:25:57 -0700 > Cc: bug-gnulib@gnu.org, larsi@gnus.org, 57129@debbugs.gnu.org, > jporterbugs@gmail.com > From: Paul Eggert > > On 8/16/22 09:25, Eli Zaretskii wrote: > > why does this work differently on > > different platforms? > > Platforms that lack clock_gettime and CLOCK_MONOTONIC fall back on a > deterministic algorithm. Presumably MS-DOS one of the few such > platforms, which is why the problem is observed only on MS-DOS. (Why are you talking about MS-DOS?) MinGW does have clock_gettime, but we don't want to use it, because one of the MinGW flavors (MinGW64) implements that function in libwinpthreads, and that makes Emacs depend on libwinpthreads DLL, which we want to avoid. > How about something like the attached patch to Gnulib's lib/tempname.c? Thanks, but why not use 'random' instead? Emacs does have it on all platforms, including MS-Windows. AFAIU, it's better than 'rand'. > If I understand things correctly this should make the names random > enough on MS-DOS, though Emacs itself still needs a patch as I mentioned > a few minutes ago. Why would Emacs need that patch?