From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Theodor Thornhill 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 08:04:22 +0100 Message-ID: <877chmygzt.fsf@thornhill.no> References: <87le63xzjt.fsf@thornhill.no> <861q7vihnm.fsf@gnu.org> <87frwbxrs6.fsf@thornhill.no> <87zfuj40pz.fsf@yahoo.com> <87ttkr3vku.fsf@yahoo.com> Reply-To: Theodor Thornhill Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5236"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Eli Zaretskii , 70036@debbugs.gnu.org To: Po Lu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Mar 28 08:05:12 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 1rpjoy-00013R-H2 for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 28 Mar 2024 08:05:11 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rpjot-0004NN-KM; Thu, 28 Mar 2024 03:05:03 -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 1rpjos-0004N7-6a for bug-gnu-emacs@gnu.org; Thu, 28 Mar 2024 03:05:02 -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 1rpjor-0000Pj-TO for bug-gnu-emacs@gnu.org; Thu, 28 Mar 2024 03:05:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rpjos-0008M1-D3 for bug-gnu-emacs@gnu.org; Thu, 28 Mar 2024 03:05:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Theodor Thornhill Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 28 Mar 2024 07:05: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.171160947631952 (code B ref 70036); Thu, 28 Mar 2024 07:05:02 +0000 Original-Received: (at 70036) by debbugs.gnu.org; 28 Mar 2024 07:04:36 +0000 Original-Received: from localhost ([127.0.0.1]:38897 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rpjoQ-0008Iz-A1 for submit@debbugs.gnu.org; Thu, 28 Mar 2024 03:04:35 -0400 Original-Received: from out-176.mta1.migadu.com ([95.215.58.176]:56291) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rpjoO-0008I3-4c for 70036@debbugs.gnu.org; Thu, 28 Mar 2024 03:04:33 -0400 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=thornhill.no; s=key1; t=1711609466; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=lCB9PQCPWazdIAUEQnqTKHme6QPE0eACk3hSnqfstzE=; b=me2+Ea5y6jAUvc8iTyQa6B4uiT7KEEDSq+LDThZQWed1v6CVKQ0v4xhDjemViask/Qg8Lz vJa+9rz1S3FFtP9n3x5Lxi32lukaJSQ1yAVh7lwK9oqc3kqGDXPdWwy0VJwYAmpsd4wQ2L ZaOlWNif1a6FuwxsxMIpkxls/ty05/Csn63zB0zevCaXRUmrKvBMgHUDzzFwxGELgRtkbS J95ct7FCMjnkR6TzKCBsoKnv44HcOQmDqIcrXOvpgYekC8lt+W1pyEw786p82+1B/qKPYa SrVdmBhKnNTpZNGQDOZJq1XjiAoviPb3VySLBe8TSZtDVE2Yl0rwyeCyMqLh8A== In-Reply-To: <87ttkr3vku.fsf@yahoo.com> X-Migadu-Flow: FLOW_OUT 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:282182 Archived-At: Po Lu writes: > 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. I agree, and believe you are right. I think Fexpand_file_name should be enough. I'll look into it! Thanks!