Lars Ingebrigtsen <larsi@HIDDEN>
to control <at> debbugs.gnu.org
.
Full text available.Received: (at 20937) by debbugs.gnu.org; 12 May 2022 02:58:07 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Wed May 11 22:58:07 2022 Received: from localhost ([127.0.0.1]:39070 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1noz1j-00081j-2G for submit <at> debbugs.gnu.org; Wed, 11 May 2022 22:58:07 -0400 Received: from quimby.gnus.org ([95.216.78.240]:48456) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <larsi@HIDDEN>) id 1noz1h-000819-2s for 20937 <at> debbugs.gnu.org; Wed, 11 May 2022 22:58:05 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=G43HhLSA3Zib6Be9aVT+ecZO5yUXJTDwFTIGtkqowT8=; b=efl0KfwMKpDakSENAsVxrGAxV4 z2/brZttwEO//usS6KAm+aVuzNf5HQ3+Rg+n1RBp075pXYSLYLtlsmt2ObKJVYeqtSPtG89EBTKPC FcRnCFWU9W94zcJnhMDeFe+8TsyviAhFQZdWJB6w5rfcftnXud3u57cfbyjgZPeQtsgk=; Received: from [84.212.220.105] (helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from <larsi@HIDDEN>) id 1noz1W-0007Sq-Rw; Thu, 12 May 2022 04:57:57 +0200 From: Lars Ingebrigtsen <larsi@HIDDEN> To: Ed Avis <eda@HIDDEN> Subject: Re: bug#20937: 24.4; shell-mode: tab completion adds /. to directory, which is not helpful References: <7E039918541B4C4183BFDB8F015C743032E47E4A@HIDDEN> X-Now-Playing: Blaine L. Reininger's _Broken Fingers (vinyl)_: "Gogolo Grasiento" Date: Thu, 12 May 2022 04:57:54 +0200 In-Reply-To: <7E039918541B4C4183BFDB8F015C743032E47E4A@HIDDEN> (Ed Avis's message of "Tue, 30 Jun 2015 13:38:47 +0000") Message-ID: <87ee0z1mq5.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Ed Avis <eda@HIDDEN> writes: > M-x shell > mkdir foo > rmdir foo <TAB> <TAB> > > The argument to rmdir is completed to 'foo/.' (which is the initial > substring of 'foo/.' and 'foo/..'). (I'm going through old bug reports that unfortunately weren't resolved at the time.) Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 20937 Cc: 20937 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) Ed Avis <eda@HIDDEN> writes: > M-x shell > mkdir foo > rmdir foo <TAB> <TAB> > > The argument to rmdir is completed to 'foo/.' (which is the initial > substring of 'foo/.' and 'foo/..'). (I'm going through old bug reports that unfortunately weren't resolved at the time.) That first TAB completes to "foo/", though, which is what you'd expect. (At least in 25.1 and up; I don't have 24.4 here.) > Please change the tab completion in shell mode so that directories are > completed to the trailing slash, as foo/, but the special '.' and '..' > subdirectories are not considered for further completion. In bug#16577, we discussed the possibility of adding more variables to allow excluding files more easily. If we had that, then adding "." and ".." to that would probably be pretty popular. (So I'm merging this report with that report, because fixing it would also fix this one.) -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no
bug-gnu-emacs@HIDDEN
:bug#20937
; Package emacs
.
Full text available.Received: (at submit) by debbugs.gnu.org; 30 Jun 2015 13:39:13 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Tue Jun 30 09:39:13 2015 Received: from localhost ([127.0.0.1]:33800 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1Z9vkm-0003dg-Gs for submit <at> debbugs.gnu.org; Tue, 30 Jun 2015 09:39:13 -0400 Received: from eggs.gnu.org ([208.118.235.92]:37283) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from <eda@HIDDEN>) id 1Z9vki-0003dQ-Ig for submit <at> debbugs.gnu.org; Tue, 30 Jun 2015 09:39:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <eda@HIDDEN>) id 1Z9vkY-0004fk-Rk for submit <at> debbugs.gnu.org; Tue, 30 Jun 2015 09:39:03 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:32842) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <eda@HIDDEN>) id 1Z9vkY-0004ff-Ox for submit <at> debbugs.gnu.org; Tue, 30 Jun 2015 09:38:58 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50757) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <eda@HIDDEN>) id 1Z9vkX-00086d-0d for bug-gnu-emacs@HIDDEN; Tue, 30 Jun 2015 09:38:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <eda@HIDDEN>) id 1Z9vkS-0004eA-BR for bug-gnu-emacs@HIDDEN; Tue, 30 Jun 2015 09:38:56 -0400 Received: from mail1.bemta14.messagelabs.com ([193.109.254.118]:6064) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <eda@HIDDEN>) id 1Z9vkS-0004dX-1O for bug-gnu-emacs@HIDDEN; Tue, 30 Jun 2015 09:38:52 -0400 Received: from [193.109.254.147] by server-14.bemta-14.messagelabs.com id 89/8E-21300-9EB92955; Tue, 30 Jun 2015 13:38:49 +0000 X-Env-Sender: eda@HIDDEN X-Msg-Ref: server-4.tower-27.messagelabs.com!1435671528!27054477!1 X-Originating-IP: [213.212.127.155] X-StarScan-Received: X-StarScan-Version: 6.13.16; banners=waniasset.com,-,- X-VirusChecked: Checked Received: (qmail 2312 invoked from network); 30 Jun 2015 13:38:49 -0000 Received: from unknown (HELO WCL-EXCHCAS03.wcl.local) (213.212.127.155) by server-4.tower-27.messagelabs.com with AES128-SHA encrypted SMTP; 30 Jun 2015 13:38:49 -0000 Received: from WCL-EXCH02.wcl.local ([169.254.1.57]) by WCL-EXCHCAS03.wcl.local ([149.85.126.212]) with mapi id 14.03.0123.003; Tue, 30 Jun 2015 14:38:48 +0100 From: Ed Avis <eda@HIDDEN> To: "'bug-gnu-emacs@HIDDEN'" <bug-gnu-emacs@HIDDEN> Subject: 24.4; shell-mode: tab completion adds /. to directory, which is not helpful Thread-Topic: 24.4; shell-mode: tab completion adds /. to directory, which is not helpful Thread-Index: AdCzOgpmAbWxXfSKQXS9YsZBbzIrQQ== Date: Tue, 30 Jun 2015 13:38:47 +0000 Message-ID: <7E039918541B4C4183BFDB8F015C743032E47E4A@HIDDEN> Accept-Language: en-US, en-GB Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [149.85.127.168] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -4.0 (----) M-x shell mkdir foo rmdir foo <TAB> <TAB> The argument to rmdir is completed to 'foo/.' (which is the initial substring of 'foo/.' and 'foo/..'). There are not many cases when you really want to include the trailing /. on a directory name. Usually just giving the directory is sufficient, and giving it with a trailing slash is okay. Emacs could complete the filename to include the trailing slash, but should not go further to add the '.' character when the directory is empty. In particular, 'rmdir foo/.' is an error; see GNU coreutils bug #20835. Please change the tab completion in shell mode so that directories are completed to the trailing slash, as foo/, but the special '.' and '..' subdirectories are not considered for further completion. In GNU Emacs 24.4.1 (x86_64-redhat-linux-gnu, GTK+ Version 3.10.9) of 2014-11-03 on wcl-linux04.wcl.local Configured using: `configure --build=3Dx86_64-redhat-linux-gnu --host=3Dx86_64-redhat-linux-gnu --program-prefix=3D --disable-dependency-tracking --prefix=3D/usr --exec-prefix=3D/usr --bindir=3D/usr/bin --sbindir=3D/usr/sbin --sysconfdir=3D/etc --datadir=3D/usr/share --includedir=3D/usr/include --libdir=3D/usr/lib64 --libexecdir=3D/usr/libexec --localstatedir=3D/var --sharedstatedir=3D/var/lib --mandir=3D/usr/share/man --infodir=3D/usr/share/info --with-dbus --with-gif --with-jpeg --with-png= --with-rsvg --with-tiff --with-xft --with-xpm --with-x-toolkit=3Dgtk3 --with-gpm=3Dno build_alias=3Dx86_64-redhat-linux-gnu host_alias=3Dx86_64-redhat-linux-gnu 'CFLAGS=3D-DMAIL_USE_LOCKF -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=3D2 -fexceptions -fstack-protector-strong --param=3Dssp-buffer-size=3D4 -grecord-gcc-switches -m64 -mtune=3Dgeneric' 'LDFLAGS=3D-Wl,-z,relro '' Important settings: value of $LC_COLLATE: C value of $LC_CTYPE: en_GB.UTF-8 value of $LC_MESSAGES: en_GB.UTF-8 value of $LC_MONETARY: en_GB.UTF-8 value of $LC_NUMERIC: en_GB.UTF-8 value of $LC_TIME: en_GB.UTF-8 value of $LANG: en_GB.UTF-8 locale-coding-system: utf-8-unix Major mode: Shell Minor modes in effect: diff-auto-refine-mode: t shell-dirtrack-mode: t tooltip-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: e r ; RET d r o p SPC t a b l e SPC C-x o C-x C-f ~=20 / t DEL DEL t r a TAB d TAB C-g C-x C-f / h o m TAB=20 t r a d i TAB b TAB g h o TAB DEL DEL DEL h o TAB 2=20 0 1 5 0 6 0 3 0 1 3 TAB t b d a t a s t r e a m a s=20 TAB C-g C-x o t b d a t a s t r e a m a s r e l e a=20 s e d ; RET C-x o ESC > g i t SPC C-a C-k r p m SPC=20 =3D - q DEL DEL DEL - q i SPC s q s h RET c d SPC . C-a=20 C-k p e r l SPC - E SPC ' $ s t r SPC =3D SPC " a : b=20 " ; SPC p u s h SPC s p l i t ( " : " , SPC $ s t r=20 ) , SPC 5 ; DEL ' RET ESC p ESC b ESC b ESC b DEL DEL=20 DEL DEL DEL C-f C-f C-f C-f C-f C-f C-f C-f C-f C-f=20 C-f C-f C-f C-f C-f C-f SPC DEL =3D SPC DEL SPC DEL DEL=20 SPC =3D ( 5 C-d C-d C-f ) C-e RET g i t SPC p u l l RET=20 c d RET l s SPC f o o RET r m d i r SPC f o TAB TAB=20 TAB C-a C-k ESC x r e p o r t SPC - e m DEL DEL DEL=20 e m a c s SPC b u SPC RET Recent messages: Wrote /home/eda/git_working/repos/.git/COMMIT_EDITMSG Mark set Quit Mark set [2 times] No match Quit [2 times] Mark set ~=20 Making completion list... Complete, but not unique Load-path shadows: None found. Features: (shadow sort emacsbug sendmail pcmpl-x novice sgml-mode smerge-mode mail-extr mule-util sql view pcmpl-gnu dired-aux dired etags rect python json edmacro kmacro log-view help-mode sh-script smie executable pcmpl-rpm tabify imenu man vc-bzr vc-sccs vc-svn vc-cvs vc-rcs dabbrev ffap thingatpt url-parse auth-source eieio eieio-core gnus-util password-cache url-vars cus-edit wid-edit cus-start cus-load perl-mode diff-mode vc vc-dispatcher vc-git nxml-uchnm rng-xsd xsd-regexp rng-cmpct rng-nxml rng-valid rng-loc rng-uri rng-parse nxml-parse rng-match rng-dt rng-util rng-pttrn nxml-ns nxml-mode nxml-outln nxml-rap nxml-util nxml-glyph nxml-enc xmltok misearch multi-isearch pcmpl-unix xterm time-date log-edit easy-mmode message format-spec rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mailabbrev mail-utils gmm-utils mailheader pcvs-util add-log warnings server csharp-mode advice help-fns byte-opt bytecomp byte-compile cconv cc-langs cc-mode cc-fonts easymenu cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs zoom-frm frame-cmds frame-fns cl-macs avoid cl gv cl-loaddefs cl-lib compile shell pcomplete comint ring ansi-color tooltip electric uniquify ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind gfilenotify dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs) Memory information: ((conses 16 2149314 163635) (symbols 48 30430 0) (miscs 40 1390 5624) (strings 32 72023 17226) (string-bytes 1 2507383) (vectors 16 37490) (vector-slots 8 1568020 210072) (floats 8 915 1009) (intervals 56 312569 2362) (buffers 960 189) (heap 1024 95997 7056)) Please ignore autogenerated disclaimer after this point. This email is intended only for the person to whom it is addressed and may= contain confidential information. Any retransmission, copying, disclosure= or other use of, this information by persons other than the intended reci= pient is prohibited. If you received this email in error, please contact t= he sender and delete the material. This email is for information only and = is not intended as an offer or solicitation for the purchase or sale of an= y financial instrument. Wadhwani Asset Management LLP is a Limited Liabili= ty Partnership registered in England (OC303168) with registered office at = 40 Berkeley Square, 3rd Floor, London, W1J 5AL. It is authorised and regul= ated by the Financial Conduct Authority.
Ed Avis <eda@HIDDEN>
:bug-gnu-emacs@HIDDEN
.
Full text available.bug-gnu-emacs@HIDDEN
:bug#20937
; Package emacs
.
Full text available.
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.