From unknown Tue Aug 19 01:58:15 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#1667: 23.0.60; env var completion in shell mode - case sensitivity Reply-To: "Drew Adams" , 1667@debbugs.gnu.org Resent-From: "Drew Adams" Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Mon, 22 Dec 2008 00:20:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: report 1667 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by submit@emacsbugs.donarmstrong.com id=B.12299046821434 (code B ref -1); Mon, 22 Dec 2008 00:20:02 +0000 Received: (at submit) by emacsbugs.donarmstrong.com; 22 Dec 2008 00:11:22 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=0.1 required=4.0 tests=FOURLA autolearn=no version=3.2.5-bugs.debian.org_2005_01_02 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mBM0BJCF001428 for ; Sun, 21 Dec 2008 16:11:20 -0800 Received: from mx10.gnu.org ([199.232.76.166]:60883) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1LEYNQ-0001W2-0Y for emacs-pretest-bug@gnu.org; Sun, 21 Dec 2008 19:10:28 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1LEYOC-0004L3-Ga for emacs-pretest-bug@gnu.org; Sun, 21 Dec 2008 19:11:18 -0500 Received: from rcsinet12.oracle.com ([148.87.113.124]:20895 helo=rgminet12.oracle.com) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LEYOB-0004Kr-Va for emacs-pretest-bug@gnu.org; Sun, 21 Dec 2008 19:11:16 -0500 Received: from acsinet13.oracle.com (acsinet13.oracle.com [141.146.126.235]) by rgminet12.oracle.com (Switch-3.3.1/Switch-3.3.1) with ESMTP id mBM0Asqo005739 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 22 Dec 2008 00:10:55 GMT Received: from acsmt706.oracle.com (acsmt706.oracle.com [141.146.40.84]) by acsinet13.oracle.com (Switch-3.3.1/Switch-3.3.1) with ESMTP id mBM0BaD7008189 for ; Mon, 22 Dec 2008 00:11:38 GMT Received: from dradamslap1 (/24.5.135.148) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 22 Dec 2008 00:11:07 +0000 From: "Drew Adams" To: Date: Sun, 21 Dec 2008 16:11:12 -0800 Message-ID: <000801c963c9$cccaaa20$0200a8c0@us.oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 Thread-Index: AcljycwQ3tKROwW0QquZrVDlQ99Xmg== X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3350 X-Source-IP: acsmt706.oracle.com [141.146.40.84] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A090206.494EDB1C.01C7:SCFSTAT928724,ss=1,fgs=0 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 1) emacs -Q I'm on MS Windows. I load these two files, in order: http://www.emacswiki.org/emacs/cygwin-mount.el http://www.emacswiki.org/emacs/setup-cygwin.el M-x shell In buffer *shell*, I type lowercase "$hom", then hit TAB. It completes to "$homE". Dunno whether that is TRT (probably not), but when I hit TAB a second time, it shows no possible completions. Whereas, there are these completions for "$HOME": "HOME", "HOMEDRIVE", "HOMEPATH". The same bug appears in Emacs 22. In GNU Emacs 23.0.60.1 (i386-mingw-nt5.1.2600) of 2008-12-19 on LENNART-69DE564 Windowing system distributor `Microsoft Corp.', version 5.1.2600 configured using `configure --with-gcc (3.4) --no-opt --cflags -Ic:/g/include -fno-crossjumping' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: ENU value of $XMODIFIERS: nil locale-coding-system: cp1252 default-enable-multibyte-characters: t Major mode: Shell Minor modes in effect: shell-dirtrack-mode: t tooltip-mode: t tool-bar-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t global-auto-composition-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t From unknown Tue Aug 19 01:58:15 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#1667: 23.0.60;env var completion in shell mode - case sensitivity Reply-To: "Drew Adams" , 1667@debbugs.gnu.org Resent-From: "Drew Adams" Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Tue, 30 Dec 2008 22:40:06 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: followup 1667 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by submit@emacsbugs.donarmstrong.com id=B.12306764312629 (code B ref -1); Tue, 30 Dec 2008 22:40:06 +0000 Received: (at submit) by emacsbugs.donarmstrong.com; 30 Dec 2008 22:33:51 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-2.9 required=4.0 tests=FOURLA,HAS_BUG_NUMBER autolearn=unavailable version=3.2.5-bugs.debian.org_2005_01_02 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mBUMXmSp002623 for ; Tue, 30 Dec 2008 14:33:49 -0800 Received: from mail.gnu.org ([199.232.76.166]:44022 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1LHn8m-0000zz-VS for emacs-pretest-bug@gnu.org; Tue, 30 Dec 2008 17:32:45 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1LHn9l-0005oS-DU for emacs-pretest-bug@gnu.org; Tue, 30 Dec 2008 17:33:47 -0500 Received: from rcsinet11.oracle.com ([148.87.113.123]:21133 helo=rgminet11.oracle.com) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LHn9l-0005oM-0Z for emacs-pretest-bug@gnu.org; Tue, 30 Dec 2008 17:33:45 -0500 Received: from rgminet15.oracle.com (rcsinet15.oracle.com [148.87.113.117]) by rgminet11.oracle.com (Switch-3.3.1/Switch-3.3.1) with ESMTP id mBUMYxcf002959 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 30 Dec 2008 22:35:00 GMT Received: from acsmt702.oracle.com (acsmt702.oracle.com [141.146.40.80]) by rgminet15.oracle.com (Switch-3.3.1/Switch-3.3.1) with ESMTP id mBUMSMPG026457; Tue, 30 Dec 2008 22:28:23 GMT Received: from dradamslap1 (/141.144.90.249) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Tue, 30 Dec 2008 22:33:30 +0000 From: "Drew Adams" To: "'Drew Adams'" , <1667@debbugs.gnu.org>, References: <000801c963c9$cccaaa20$0200a8c0@us.oracle.com> Date: Tue, 30 Dec 2008 14:33:34 -0800 Message-ID: <002401c96ace$a7261d70$0200a8c0@us.oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <000801c963c9$cccaaa20$0200a8c0@us.oracle.com> Thread-Index: AcljycwQ3tKROwW0QquZrVDlQ99XmgHA6/pg X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3350 X-Source-IP: acsmt702.oracle.com [141.146.40.80] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A090202.495AA1BC.0076:SCFSTAT928724,ss=1,fgs=0 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 1) X-CrossAssassin-Score: 2 > From: Drew Adams Sent: Sunday, December 21, 2008 4:11 PM > emacs -Q > > I'm on MS Windows. I load these two files, in order: > http://www.emacswiki.org/emacs/cygwin-mount.el > http://www.emacswiki.org/emacs/setup-cygwin.el > > M-x shell > > In buffer *shell*, I type lowercase "$hom", then hit TAB. It completes > to "$homE". > > Dunno whether that is TRT (probably not), but when I hit TAB a second > time, it shows no possible completions. Whereas, there are these > completions for "$HOME": "HOME", "HOMEDRIVE", "HOMEPATH". > > The same bug appears in Emacs 22. > > In GNU Emacs 23.0.60.1 (i386-mingw-nt5.1.2600) > of 2008-12-19 on LENNART-69DE564 > Windowing system distributor `Microsoft Corp.', version 5.1.2600 > configured using `configure --with-gcc (3.4) --no-opt > --cflags -Ic:/g/include -fno-crossjumping' FYI - The problem comes from the two calls to `string-equal' in the definition of `comint-dynamic-simple-complete'. Even though the function goes to the trouble of binding `completion-ignore-case', it defeats this by using `string-equal', which takes no account of `completion-ignore-case'. `comint-dynamic-simple-complete' is general, and can be used for different thingies - in this case, it is called by `shell-dynamic-complete-as-environment-variable'. Should env var completion be case-insensitive on Windows? (dunno) Either (1) The calling program needs some control over the behavior of `completion-ignore-case' wrt case, so it can have a say in whether completion should be case-sensitive for a particular kind of thingy (e.g. env vars). Or (2) case-insensitive string comparison should be used everywhere in `comint-dynamic-simple-complete', for (memq system-type '(ms-dos windows-nt cygwin)). From unknown Tue Aug 19 01:58:15 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.427 (Entity 5.427) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: "Drew Adams" Subject: bug#1667: closed (Re: env var completion in shell mode - case sensitivity) Message-ID: References: <000801c963c9$cccaaa20$0200a8c0@us.oracle.com> X-Gnu-PR-Message: they-closed 1667 X-Gnu-PR-Package: emacs Reply-To: 1667@debbugs.gnu.org Date: Fri, 21 Oct 2011 22:34:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1319236442-9450-1" This is a multi-part message in MIME format... ------------=_1319236442-9450-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #1667: 23.0.60; env var completion in shell mode - case sensitivity which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 1667@debbugs.gnu.org. --=20 1667: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D1667 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1319236442-9450-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 1667-done) by debbugs.gnu.org; 21 Oct 2011 22:33:55 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RHNf0-0002S5-SR for submit@debbugs.gnu.org; Fri, 21 Oct 2011 18:33:55 -0400 Received: from ironport2-out.teksavvy.com ([206.248.154.183] helo=ironport2-out.pppoe.ca) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RHNez-0002Ru-To for 1667-done@debbugs.gnu.org; Fri, 21 Oct 2011 18:33:54 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AjwHAAvyoU5MCqLO/2dsb2JhbABDmiOOe4EGgW4BXD40JhgNnGefWohABKEyhEU X-IronPort-AV: E=Sophos;i="4.69,388,1315195200"; d="scan'208";a="143661401" Received: from 76-10-162-206.dsl.teksavvy.com (HELO pastel.home) ([76.10.162.206]) by ironport2-out.pppoe.ca with ESMTP/TLS/ADH-AES256-SHA; 21 Oct 2011 18:32:32 -0400 Received: by pastel.home (Postfix, from userid 20848) id BC0C059154; Fri, 21 Oct 2011 18:32:31 -0400 (EDT) From: Stefan Monnier To: 1667-done@debbugs.gnu.org Subject: Re: env var completion in shell mode - case sensitivity Message-ID: Date: Fri, 21 Oct 2011 18:32:31 -0400 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.90 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -1.6 (-) X-Debbugs-Envelope-To: 1667-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.6 (-) AFAIK this has been fixed in the trunk by the rewrite of the comint/shell completion to use the standard completion UI. Stefan ------------=_1319236442-9450-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by emacsbugs.donarmstrong.com; 22 Dec 2008 00:11:22 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=0.1 required=4.0 tests=FOURLA autolearn=no version=3.2.5-bugs.debian.org_2005_01_02 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mBM0BJCF001428 for ; Sun, 21 Dec 2008 16:11:20 -0800 Received: from mx10.gnu.org ([199.232.76.166]:60883) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1LEYNQ-0001W2-0Y for emacs-pretest-bug@gnu.org; Sun, 21 Dec 2008 19:10:28 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1LEYOC-0004L3-Ga for emacs-pretest-bug@gnu.org; Sun, 21 Dec 2008 19:11:18 -0500 Received: from rcsinet12.oracle.com ([148.87.113.124]:20895 helo=rgminet12.oracle.com) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LEYOB-0004Kr-Va for emacs-pretest-bug@gnu.org; Sun, 21 Dec 2008 19:11:16 -0500 Received: from acsinet13.oracle.com (acsinet13.oracle.com [141.146.126.235]) by rgminet12.oracle.com (Switch-3.3.1/Switch-3.3.1) with ESMTP id mBM0Asqo005739 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 22 Dec 2008 00:10:55 GMT Received: from acsmt706.oracle.com (acsmt706.oracle.com [141.146.40.84]) by acsinet13.oracle.com (Switch-3.3.1/Switch-3.3.1) with ESMTP id mBM0BaD7008189 for ; Mon, 22 Dec 2008 00:11:38 GMT Received: from dradamslap1 (/24.5.135.148) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 22 Dec 2008 00:11:07 +0000 From: "Drew Adams" To: Subject: 23.0.60; env var completion in shell mode - case sensitivity Date: Sun, 21 Dec 2008 16:11:12 -0800 Message-ID: <000801c963c9$cccaaa20$0200a8c0@us.oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 Thread-Index: AcljycwQ3tKROwW0QquZrVDlQ99Xmg== X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3350 X-Source-IP: acsmt706.oracle.com [141.146.40.84] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A090206.494EDB1C.01C7:SCFSTAT928724,ss=1,fgs=0 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 1) emacs -Q I'm on MS Windows. I load these two files, in order: http://www.emacswiki.org/emacs/cygwin-mount.el http://www.emacswiki.org/emacs/setup-cygwin.el M-x shell In buffer *shell*, I type lowercase "$hom", then hit TAB. It completes to "$homE". Dunno whether that is TRT (probably not), but when I hit TAB a second time, it shows no possible completions. Whereas, there are these completions for "$HOME": "HOME", "HOMEDRIVE", "HOMEPATH". The same bug appears in Emacs 22. In GNU Emacs 23.0.60.1 (i386-mingw-nt5.1.2600) of 2008-12-19 on LENNART-69DE564 Windowing system distributor `Microsoft Corp.', version 5.1.2600 configured using `configure --with-gcc (3.4) --no-opt --cflags -Ic:/g/include -fno-crossjumping' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: ENU value of $XMODIFIERS: nil locale-coding-system: cp1252 default-enable-multibyte-characters: t Major mode: Shell Minor modes in effect: shell-dirtrack-mode: t tooltip-mode: t tool-bar-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t global-auto-composition-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t ------------=_1319236442-9450-1--