From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: Tab completion on find file with (C-x C-f) adds a slash to end of file Date: Mon, 12 Aug 2019 21:06:24 +0300 Message-ID: <83tvams1gf.fsf@gnu.org> References: Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="182009"; mail-complaints-to="usenet@blaine.gmane.org" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Aug 12 20:06:46 2019 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hxEiU-000l98-Ev for geh-help-gnu-emacs@m.gmane.org; Mon, 12 Aug 2019 20:06:46 +0200 Original-Received: from localhost ([::1]:47568 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hxEiT-0006tQ-HS for geh-help-gnu-emacs@m.gmane.org; Mon, 12 Aug 2019 14:06:45 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40060) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hxEiN-0006tI-RL for help-gnu-emacs@gnu.org; Mon, 12 Aug 2019 14:06:40 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:53687) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hxEiN-0002vv-Nu for help-gnu-emacs@gnu.org; Mon, 12 Aug 2019 14:06:39 -0400 Original-Received: from [176.228.60.248] (port=2475 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1hxEiM-0002yO-Ko for help-gnu-emacs@gnu.org; Mon, 12 Aug 2019 14:06:39 -0400 In-reply-to: (message from Anne Summers on Mon, 12 Aug 2019 12:53:25 -0500) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:121336 Archived-At: > From: Anne Summers > Date: Mon, 12 Aug 2019 12:53:25 -0500 > > When I try to open a file with (C-x C-f) and try to complete name file > with tab a / is added at the end of the file like it does for directory. > For example if I want to open .bash_profile and I do (C-x C-f) then type > .bash_pr the completions I get is: Find file: ~/.bash_profile/ > > I am not sure how or why that / is being added. I can't recall seeing this > behavior before.I see similar behavior on eshell. I see this with and > without my .emacs file. > > I am running on AIX and I don't see this in other architectures. > GNU Emacs 26.1 (build 1, powerpc-ibm-aix6.1.9.0) > of 2019-04-23 > Copyright (C) 2018 Free Software Foundation, Inc. > > Thanks for any pointers Look at dired.c:file_name_completion_dirp -- crystal ball says on your system it tells Emacs that a file is actually a directory. Perhaps the way faccessat works on your system is to blame.