From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Po Lu via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#70036: 30.0.50; Move file-truename to the C level Date: Thu, 28 Mar 2024 11:05:05 +0800 Message-ID: <87ttkr3vku.fsf@yahoo.com> References: <87le63xzjt.fsf@thornhill.no> <861q7vihnm.fsf@gnu.org> <87frwbxrs6.fsf@thornhill.no> <87zfuj40pz.fsf@yahoo.com> Reply-To: Po Lu Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13072"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Eli Zaretskii , 70036@debbugs.gnu.org To: Theodor Thornhill Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Mar 28 04:06:31 2024 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 1rpg62-0003GF-Ia for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 28 Mar 2024 04:06:30 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rpg5e-0000va-Vm; Wed, 27 Mar 2024 23:06:07 -0400 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 1rpg5a-0000v8-OH for bug-gnu-emacs@gnu.org; Wed, 27 Mar 2024 23:06:03 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rpg5a-0007K9-GL for bug-gnu-emacs@gnu.org; Wed, 27 Mar 2024 23:06:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rpg5a-0005NN-1S for bug-gnu-emacs@gnu.org; Wed, 27 Mar 2024 23:06:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Po Lu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 28 Mar 2024 03:06:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 70036 X-GNU-PR-Package: emacs Original-Received: via spool by 70036-submit@debbugs.gnu.org id=B70036.171159514420560 (code B ref 70036); Thu, 28 Mar 2024 03:06:02 +0000 Original-Received: (at 70036) by debbugs.gnu.org; 28 Mar 2024 03:05:44 +0000 Original-Received: from localhost ([127.0.0.1]:38643 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rpg5H-0005LW-NI for submit@debbugs.gnu.org; Wed, 27 Mar 2024 23:05:44 -0400 Original-Received: from sonic304-20.consmr.mail.ne1.yahoo.com ([66.163.191.146]:33429) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rpg5E-0005L6-6t for 70036@debbugs.gnu.org; Wed, 27 Mar 2024 23:05:42 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1711595134; bh=rI9gYyBr04PbCYXFCkcyra1mYXu508Zg0qGaTmGL+OE=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From:Subject:Reply-To; b=kIihFtrJoyN9BBbhX4ObeQdMo0WGDDhDWGPXe932t79TuMi8f5eazMlaujM+ufDfzZGuwzanqsp6wllihl/OEPQRMr206QjvYmmGxfFpkxjben9TpZFvS61TT4+yyYnf7hPbSW552R8jST7K2X3MxW2P+TQH/khwPX2evpZRreg0IFEFwT8DnNKDxOY7Ru5l8VwWDFO4tx3eixH9qqDDlXlVH4jaaNSNDfog+JdXbB/pcO1ArKokf4z1ifAN9YmHvXPWLkvPYV8LGv+lLyfph15KnOyitP2a0o8I+kpeEWrOQ4cbV4hJJcdI3c3lHZdLZiZQrJrCWz6PeV0SrriEVg== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1711595134; bh=dH24HNJAch7CF2iCLQxykF0nocyAZG0NsrfbYBdK5oV=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=NeAnV/xB2Gg8ZZlrv9//OQSuZ0ccmUJKebc2AXuHpUcJTz/GQ9N/rgJzd7n+ckbfEO8GqilNsuymyYxtaEGS0q08earKOpzZrFq76YeYs5iZd5Tnp+Hgb3vb45AJ4j6OhfUXpH0iaJApRe7OrXwO0Vn6fuG+VqY7BVitmH5wnmw2XFzZpIXuUZYmK5iEday6edYtefqxT/RMRIA8/uFOXhycBBvh68+xA7bXOpNAIWjf1CAleJbZC57eIr9g+RUhq17eB0oXJo3DwIvNIThS9F0m5waD5CijRCi/4/GA19Z0FMnHHzScmrcCRMcP34b6B5wXsPRjAoomAkPHh0Bolg== X-YMail-OSG: N5QuSpgVM1kxkuIiCZGFWbuE_wqdpcbVgbfGLW9WJzJDoAcuVyMUsKQD0gr1Yyg DEQ25FU9F0jG4S_QWWzPDZ4t1AdR0c78AKZ19buD_dvvWZnjo4I3GXuARerIc1bgAUwojrlRNBOf Vc.muU4aVtNUzZxRXzQlukDdydVr_nXPxGpG5Nfy5vtqrC3rhhQadyQC9ugtXlhwYQCBk_HfkEpa YwBlezpnorjPCSNAjAkF9AimUI9xhLk72fOL9QRhmnh0FXIAv8gB31XXVkSlTZQJk88Z1usd4Mym wlowQc2NlJ0D6fcyD7xEH9TqzDQ_0Jlzqos46vYUhCcwqEcvYAzmzYhYPNNJeef9EUoOJqvOxbEz msdjzOoF38dIcwXTLamEYwpGoWriRhOisX3WnFSyWDcCEDxfGrF68c4oUVwzby7owa5dGtKEMT7w BqmCQD5h3fCgY9OTBcJZQhaM6Eod3dgs2L34K2AdnzMF_ii1VTE0jKwPXajt0DDaM2LvujaCD2OY ROAJ8B_6YSYDYOlGBmuTmgV4wAN.94pigW12A2RpTKUrvu3_ollte32SILMSVryRTTFISm.nA8fp td2BX6KVee4yUahriNzD_EHd0noqEoUngYfCL6BLpy5h5Pk28xBcCb1DmryM5Zo2begbgVFt0YXa kniP_rUEQI7jRuUo95IBWxHkvTfiZ_3jfevl44N97DibSWVDW_ht3tgIyQRDulJ3h3xVFgire58X SZC2GtrBorF6DJJ5SzFQK06q2YLXBz4m.omcmuE1YuyN.cIw83Ztf1szetl.KQ72xkzMVtBYrEPb CZJyrsMqVtHh_RwkNagqWRMka2x8fnZLFkPmCr9J0d X-Sonic-MF: X-Sonic-ID: 9bba92af-7873-4922-be94-0066d3b981f8 Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic304.consmr.mail.ne1.yahoo.com with HTTP; Thu, 28 Mar 2024 03:05:34 +0000 Original-Received: by hermes--production-sg3-6dc75bc8fb-6dxcw (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 308f0bd10d46464ea9d5455e48927266; Thu, 28 Mar 2024 03:05:30 +0000 (UTC) In-Reply-To: <87zfuj40pz.fsf@yahoo.com> (Po Lu's message of "Thu, 28 Mar 2024 09:14:00 +0800") X-Mailer: WebService/1.1.22205 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo 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:282169 Archived-At: Po Lu writes: > Haiku supports realpath, but not wordexp. We must reimplement virtually > all POSIX functions of this nature on Windows, as the versions provided > by system C libraries, if they exist at all, are inadequate for some > reason or another. Furthermore, these functions are absent from a > number of other operating systems, such as OpenBSD and Android 14.0, and > on others (Alpine, I believe) wordexp is severely inefficient for being > implemented as a wrapper around /bin/sh. BTW, after reading the subject of this bug report, I don't believe there is a place for wordexp at all. wordexp is no replacement for Fexpand_file_name, but rather a means of expanding input in the manner of a shell, which input might include arithmetic expressions, shell command substitutions, and other expressions valid as shell input. If Fexpand_file_name alone will not suffice, TRT is to replicate the mechanics of file-truename in whole, not cutting corners with these admittedly tempting functions.