From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Paul Eggert Newsgroups: gmane.emacs.bugs Subject: bug#57129: 29.0.50; Improve behavior of conditionals in Eshell Date: Tue, 16 Aug 2022 10:25:57 -0700 Organization: UCLA Computer Science Department Message-ID: References: <1871347.6tgchFWduM@nimes> <838rnofgad.fsf@gnu.org> <4165399.mogB4TqSGs@nimes> <83wnb8dukz.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------vgbOtvgTFfN9LnNaetVKh9oz" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38335"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Cc: jporterbugs@gmail.com, larsi@gnus.org, bug-gnulib@gnu.org, 57129@debbugs.gnu.org To: Eli Zaretskii , Bruno Haible Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Aug 16 19:27:36 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 1oO0Ln-0009rs-P5 for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 16 Aug 2022 19:27:35 +0200 Original-Received: from localhost ([::1]:54882 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oO0Lm-0008IR-AG for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 16 Aug 2022 13:27:34 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34720) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oO0LG-0008I5-HP for bug-gnu-emacs@gnu.org; Tue, 16 Aug 2022 13:27:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:58459) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oO0LG-0001B9-94 for bug-gnu-emacs@gnu.org; Tue, 16 Aug 2022 13:27:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oO0LG-0001q0-37 for bug-gnu-emacs@gnu.org; Tue, 16 Aug 2022 13:27:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Paul Eggert Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 16 Aug 2022 17:27: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.16606707716984 (code B ref 57129); Tue, 16 Aug 2022 17:27:02 +0000 Original-Received: (at 57129) by debbugs.gnu.org; 16 Aug 2022 17:26:11 +0000 Original-Received: from localhost ([127.0.0.1]:48203 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oO0KQ-0001oa-LB for submit@debbugs.gnu.org; Tue, 16 Aug 2022 13:26:10 -0400 Original-Received: from zimbra.cs.ucla.edu ([131.179.128.68]:37490) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oO0KL-0001o1-2u for 57129@debbugs.gnu.org; Tue, 16 Aug 2022 13:26:09 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 4795C160157; Tue, 16 Aug 2022 10:25:59 -0700 (PDT) Original-Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id 4Mzz9JQxGaR0; Tue, 16 Aug 2022 10:25:58 -0700 (PDT) Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 4CF18160158; Tue, 16 Aug 2022 10:25:58 -0700 (PDT) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Original-Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id cTC2_t8o45s0; Tue, 16 Aug 2022 10:25:58 -0700 (PDT) Original-Received: from [192.168.1.9] (cpe-172-91-119-151.socal.res.rr.com [172.91.119.151]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 119F4160157; Tue, 16 Aug 2022 10:25:58 -0700 (PDT) Content-Language: en-US In-Reply-To: <83wnb8dukz.fsf@gnu.org> 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:239980 Archived-At: This is a multi-part message in MIME format. --------------vgbOtvgTFfN9LnNaetVKh9oz Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit 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. How about something like the attached patch to Gnulib's lib/tempname.c? 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. If this patch isn't good enough for MS-DOS, what sort of random bits are easily available on that platform? We don't need anything cryptographically secure; a higher-res clock should suffice. --------------vgbOtvgTFfN9LnNaetVKh9oz Content-Type: text/x-patch; charset=UTF-8; name="rand.diff" Content-Disposition: attachment; filename="rand.diff" Content-Transfer-Encoding: base64 ZGlmZiAtLWdpdCBhL2xpYi90ZW1wbmFtZS5jIGIvbGliL3RlbXBuYW1lLmMKaW5kZXggZTY1 MjAxOTFkNy4uZTNkMDlkOTYzZCAxMDA2NDQKLS0tIGEvbGliL3RlbXBuYW1lLmMKKysrIGIv bGliL3RlbXBuYW1lLmMKQEAgLTcxLDcgKzcxLDggQEAKIAogLyogVXNlIGdldHJhbmRvbSBp ZiBpdCB3b3JrcywgZmFsbGluZyBiYWNrIG9uIGEgNjQtYml0IGxpbmVhcgogICAgY29uZ3J1 ZW50aWFsIGdlbmVyYXRvciB0aGF0IHN0YXJ0cyB3aXRoIFZhcidzIHZhbHVlCi0gICBtaXhl ZCBpbiB3aXRoIGEgY2xvY2sncyBsb3ctb3JkZXIgYml0cyBpZiBhdmFpbGFibGUuICAqLwor ICAgbWl4ZWQgaW4gd2l0aCBhIGNsb2NrJ3MgbG93LW9yZGVyIGJpdHMgKG9yIHdpdGggc29t ZSBvdGhlcgorICAgcHNldWRvcmFuZG9tIG51bWJlcikgaWYgYXZhaWxhYmxlLiAgKi8KIHR5 cGVkZWYgdWludF9mYXN0NjRfdCByYW5kb21fdmFsdWU7CiAjZGVmaW5lIFJBTkRPTV9WQUxV RV9NQVggVUlOVF9GQVNUNjRfTUFYCiAjZGVmaW5lIEJBU0VfNjJfRElHSVRTIDEwIC8qIDYy KioxMCA8IFVJTlRfRkFTVDY0X01BWCAqLwpAQCAtODksNiArOTAsOSBAQCByYW5kb21fYml0 cyAocmFuZG9tX3ZhbHVlIHZhciwgYm9vbCB1c2VfZ2V0cmFuZG9tKQogICBzdHJ1Y3QgX190 aW1lc3BlYzY0IHR2OwogICBfX2Nsb2NrX2dldHRpbWU2NCAoQ0xPQ0tfTU9OT1RPTklDLCAm dHYpOwogICB2YXIgXj0gdHYudHZfbnNlYzsKKyNlbHNlCisgIC8qIEZhbGwgYmFjayBvbiBw c2V1ZG9yYW5kb20gbnVtYmVyIDxodHRwczovL2J1Z3MuZ251Lm9yZy81NzEyOT4uICAqLwor ICB2YXIgXj0gcmFuZCAoKTsKICNlbmRpZgogICByZXR1cm4gMjg2MjkzMzU1NTc3Nzk0MTc1 NyAqIHZhciArIDMwMzcwMDA0OTM7CiB9Cg== --------------vgbOtvgTFfN9LnNaetVKh9oz--