From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jean Louis Newsgroups: gmane.emacs.devel Subject: Re: Suggest renaming Emacs source file with '$' in name Date: Sun, 3 Jan 2021 08:54:17 +0300 Message-ID: References: <2bde9b88-083a-abd4-bb44-61e33b97b492@cs.ucla.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38114"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mutt/2.0 (3d08634) (2020-11-07) Cc: Paul Eggert , Stefan Kangas , Emacs Development To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Jan 03 06:55:27 2021 Return-path: Envelope-to: ged-emacs-devel@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 1kvwMR-0009ns-48 for ged-emacs-devel@m.gmane-mx.org; Sun, 03 Jan 2021 06:55:27 +0100 Original-Received: from localhost ([::1]:57830 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kvwMQ-00036X-2X for ged-emacs-devel@m.gmane-mx.org; Sun, 03 Jan 2021 00:55:26 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38812) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kvwLs-0002hQ-Ct for Emacs-devel@gnu.org; Sun, 03 Jan 2021 00:54:52 -0500 Original-Received: from stw1.rcdrun.com ([217.170.207.13]:39427) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kvwLq-0000Wx-32 for Emacs-devel@gnu.org; Sun, 03 Jan 2021 00:54:51 -0500 Original-Received: from localhost ([::ffff:41.210.141.217]) (AUTH: PLAIN securesender, TLS: TLS1.2,256bits,ECDHE_RSA_AES_256_GCM_SHA384) by stw1.rcdrun.com with ESMTPSA id 0000000000295445.000000005FF15C26.00003D06; Sat, 02 Jan 2021 22:54:46 -0700 Mail-Followup-To: Stefan Monnier , Paul Eggert , Stefan Kangas , Emacs Development Content-Disposition: inline In-Reply-To: Received-SPF: pass client-ip=217.170.207.13; envelope-from=bugs@gnu.support; helo=stw1.rcdrun.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:262343 Archived-At: * Stefan Monnier [2021-01-03 06:38]: > > I suggest renaming the file in the Emacs source tree. If the '$' is needed > > for a filename test, the test can create a file with that name; that should > > be less of a problem than having a '$' file in the repository. > > IIRC, I added this file for a completion test, where the $ is very much > needed (the test is about the use of $ in `read-file-name` where it can > be used for ENVVARs, it can be escaped by doubling it, and it stays > untouched in case it ends up not referring to an existing ENVVAR). > > So feel free to rename it, but please be careful to change the tests so > they first rename it back to its "name with dollar in it". > > > Stefan "who can't remember having problems with $ in file names" Good reference on file names: https://dwheeler.com/essays/fixing-unix-linux-filenames.html