GNU bug report logs - #14243
24.3; Shell mode file name expansion case-sensitive on Mac OS X

Previous Next

Package: emacs;

Reported by: ua2y-rti1 <at> spamex.com

Date: Mon, 22 Apr 2013 16:24:02 UTC

Severity: normal

Tags: moreinfo

Merged with 14507

Found in version 24.3

Fixed in version 29.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 14243 in the body.
You can then email your comments to 14243 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#14243; Package emacs. (Mon, 22 Apr 2013 16:24:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to ua2y-rti1 <at> spamex.com:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Mon, 22 Apr 2013 16:24:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: ua2y-rti1 <at> spamex.com
To: bug-gnu-emacs <at> gnu.org
Subject: 24.3; Shell mode file name expansion case-sensitive on Mac OS X
Date: Mon, 22 Apr 2013 09:49:03 -0400
This bug report will be sent to the Bug-GNU-Emacs mailing list
and the GNU bug tracker at debbugs.gnu.org.  Please check that
the From: line contains a valid email address.  After a delay of up
to one day, you should receive an acknowledgment at that address.

Please write in English if possible, as the Emacs maintainers
usually do not have translators for other languages.

Please describe exactly what actions triggered the bug, and
the precise symptoms of the bug.  If you can, give a recipe
starting from `emacs -Q':

/Applications/Emacs.app/Contents/MacOS/Emacs -Q
M-x shell<RET>
ls /a<TAB>

Get "No match."  Should expand into "ls /Applications/"

read-file-name-completion-ignore-case is t
system-type is darwin

Possibly related:
http://debbugs.gnu.org/cgi/bugreport.cgi?bug=14175

Expansion ignored case in Emacs 23.3-universal-10.6.6


If Emacs crashed, and you have the Emacs process in the gdb debugger,
please include the output from the following gdb commands:
    `bt full' and `xbacktrace'.
For information about debugging Emacs, please read the file
/Applications/Emacs.app/Contents/Resources/etc/DEBUG.


In GNU Emacs 24.3.1 (x86_64-apple-darwin, NS apple-appkit-1038.36)
 of 2013-03-12 on bob.porkrind.org
Windowing system distributor `Apple', version 10.3.1138
Configured using:
 `configure '--host=x86_64-apple-darwin' '--build=i686-apple-darwin'
 '--with-ns' 'build_alias=i686-apple-darwin'
 'host_alias=x86_64-apple-darwin' 'CC=gcc -mmacosx-version-min=10.7
 -isystem
 /Users/david/Xcode-10.7_4.5.2/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/usr/include/
 -F/Users/david/Xcode-10.7_4.5.2/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/System/Library/Frameworks''

Important settings:
  locale-coding-system: nil
  default enable-multibyte-characters: t

Major mode: Fundamental

Minor modes in effect:
  shell-dirtrack-mode: t
  tooltip-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent input:
M-x s t a r t u p <return> C-x 4 b * s c <tab> <return> 
C-h v c o m p l e t i o n - i <tab> g <tab> - c <tab> 
<return> ( s e t q SPC C-x o C-SPC M-f M-f M-f M-w 
C-x o C-y SPC t ) <return> <backspace> C-j C-x 4 b 
<return> d SPC / a <tab> C-x C-f t / 1 9 6 8 <return> 
M-> M - x SPC s h e l l SPC R E T <return> l s SPC 
/ a C-p C-e M-b <backspace> < C-e > C-n < T A B > <return> 
<return> G e t SPC " N o SPC m a t h <backspace> c 
h . " SPC SPC S h o u l d SPC e x p a n d SPC i n t 
o SPC " l s SPC C-x 4 b <return> M-b C-b C-SPC C-e 
M-w C-x o C-y " C-o M-> <return> C-h v r e a d - f 
<tab> c <tab> <return> C-x o C-SPC M-f M-f M-f M-f 
M-f M-f M-f M-w C-x o C-y SPC t <return> C-h v s y 
s <tab> t <tab> y <tab> <return> C-x o C-SPC M-f M-f 
M-f M-w C-x o C-y SPC C-x o C-n C-b C-SPC C-e M-w C-x 
o C-y <return> C-x C-s C-x 4 b C-g C-x 4 f 0 0 <tab> 
<return> M-> C-p C-p C-p C-SPC C-n M-w C-x o <return> 
C-y C-p C-o P o s s i b l y SPC r e l a t e d : M-> 
C-x C-s M-< C-f C-f C-f C-SPC C-e M-w M-x r e p o r 
t <tab> <return>

Recent messages:
Mark activated
Mark set [3 times]
Saving file /Users/xxxxxx/t/1968...
Wrote /Users/xxxxxx/t/1968
Quit
Mark set [3 times]
Auto-saving...done
Mark set
Saving file /Users/xxxxxx/t/1968...
Wrote /Users/xxxxxx/t/1968

Load-path shadows:
None found.

Features:
(shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml
mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev
gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util
mail-prsvr mail-utils help-mode easymenu help-fns vc vc-dispatcher
jka-compr dabbrev cc-styles cc-align cc-engine cc-vars cc-defs shell
pcomplete comint ansi-color ring time-date tooltip ediff-hook vc-hooks
lisp-float-type mwheel ns-win tool-bar dnd fontset image regexp-opt
fringe tabulated-list newcomment lisp-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 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 ns multi-tty emacs)





Merged 14243 14507. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Wed, 29 May 2013 17:54:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#14243; Package emacs. (Wed, 25 May 2016 18:55:01 GMT) Full text and rfc822 format available.

Message #10 received at 14243 <at> debbugs.gnu.org (full text, mbox):

From: Alan Third <alan <at> idiocy.org>
To: Eric Hanchrow <eric.hanchrow <at> gmail.com>
Cc: 14507 <at> debbugs.gnu.org, 14243 <at> debbugs.gnu.org
Subject: Re: bug#14507: 24.3;
 TAB in shell mode never ignores case, even though I want it to
Date: Wed, 25 May 2016 19:54:19 +0100
Eric Hanchrow <eric.hanchrow <at> gmail.com> writes:

> I started emacs with 
>
> /Applications/Emacs.app/Contents/MacOS/Emacs -Q
>
> I typed M-x shell RET
>
> At the shell prompt, I typed "cd doc", then I hit the TAB key. The
> shell's current directory was my home directory, and that directory
> contains a subdirectory named "Documents". I expected the TAB key to
> complete the name "Documents", but it just beeped. I then did M-: (setq
> completion-ignore-case t) RET, and tried again, but it still just
> beeped.

Hi, sorry it's taken so long for someone to get back to you, but this
isn't Emacs's filename completion, this is the shells. Probably bash.
I'm afraid I can't help you with that.
-- 
Alan Third




Added tag(s) notabug. Request was from Alan Third <alan <at> idiocy.org> to control <at> debbugs.gnu.org. (Wed, 25 May 2016 18:55:02 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 14243 <at> debbugs.gnu.org and ua2y-rti1 <at> spamex.com Request was from Alan Third <alan <at> idiocy.org> to control <at> debbugs.gnu.org. (Wed, 25 May 2016 18:55:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#14243; Package emacs. (Wed, 25 May 2016 19:20:02 GMT) Full text and rfc822 format available.

Message #17 received at 14243 <at> debbugs.gnu.org (full text, mbox):

From: Eric Hanchrow <eric.hanchrow <at> gmail.com>
To: Alan Third <alan <at> idiocy.org>
Cc: 14507 <at> debbugs.gnu.org, 14243 <at> debbugs.gnu.org
Subject: Re: bug#14507: 24.3; TAB in shell mode never ignores case, even
 though I want it to
Date: Wed, 25 May 2016 19:18:55 +0000
[Message part 1 (text/plain, inline)]
So you're saying that

a) Emacs is deferring to Bash to do the completion in this case; and
b) bash is not ignoring case?

I find both of those hard to believe -- particularly since if I type "cd
doc" at a shell prompt that's not inside emacs, but is in a Terminal.app,
it does what I want (namely: completes to "cd Documents").

If a) is in fact correct, then I suppose Emacs is somehow starting the
shell differently than Terminal.app is.

On Wed, May 25, 2016 at 11:54 AM Alan Third <alan <at> idiocy.org> wrote:

> Eric Hanchrow <eric.hanchrow <at> gmail.com> writes:
>
> > I started emacs with
> >
> > /Applications/Emacs.app/Contents/MacOS/Emacs -Q
> >
> > I typed M-x shell RET
> >
> > At the shell prompt, I typed "cd doc", then I hit the TAB key. The
> > shell's current directory was my home directory, and that directory
> > contains a subdirectory named "Documents". I expected the TAB key to
> > complete the name "Documents", but it just beeped. I then did M-: (setq
> > completion-ignore-case t) RET, and tried again, but it still just
> > beeped.
>
> Hi, sorry it's taken so long for someone to get back to you, but this
> isn't Emacs's filename completion, this is the shells. Probably bash.
> I'm afraid I can't help you with that.
> --
> Alan Third
>
[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#14243; Package emacs. (Wed, 25 May 2016 19:35:02 GMT) Full text and rfc822 format available.

Message #20 received at 14243 <at> debbugs.gnu.org (full text, mbox):

From: Alan Third <alan <at> idiocy.org>
To: Eric Hanchrow <eric.hanchrow <at> gmail.com>
Cc: 14507 <at> debbugs.gnu.org, 14243 <at> debbugs.gnu.org
Subject: Re: bug#14507: 24.3; TAB in shell mode never ignores case, even
 though I want it to
Date: Wed, 25 May 2016 20:34:22 +0100
On Wed, May 25, 2016 at 07:18:55PM +0000, Eric Hanchrow wrote:
> So you're saying that
> 
> a) Emacs is deferring to Bash to do the completion in this case; and
> b) bash is not ignoring case?
> 
> I find both of those hard to believe -- particularly since if I type "cd
> doc" at a shell prompt that's not inside emacs, but is in a Terminal.app,
> it does what I want (namely: completes to "cd Documents").
> 
> If a) is in fact correct, then I suppose Emacs is somehow starting the
> shell differently than Terminal.app is.

OK, I think I was talking rubbish. It looks like Emacs does do the
completion.

(BTW, this bug looks like it's OS X specific in debbugs even though
it's reproducible in a GTK+ build on GNU/Linux too.)
-- 
Alan Third




Did not alter fixed versions and reopened. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Wed, 25 May 2016 19:51:01 GMT) Full text and rfc822 format available.

Removed tag(s) notabug. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Wed, 25 May 2016 20:57:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#14243; Package emacs. (Tue, 31 May 2016 13:19:01 GMT) Full text and rfc822 format available.

Message #27 received at 14243 <at> debbugs.gnu.org (full text, mbox):

From: Eric Hanchrow <eric.hanchrow <at> gmail.com>
To: Alan Third <alan <at> idiocy.org>
Cc: 14507 <at> debbugs.gnu.org, 14243 <at> debbugs.gnu.org
Subject: Re: bug#14507: 24.3; TAB in shell mode never ignores case, even
 though I want it to
Date: Tue, 31 May 2016 13:17:48 +0000
[Message part 1 (text/plain, inline)]
For what it's worth, the problem doesn't repro in emacs23 (specifically,
this commit)
commit c7205e5
Author: Aidan Gauland <aidalgol <at> no8wireless.co.nz>
Date: 2013-02-08 09:44:17 -0500

* doc/misc/eshell.texi: Fill most of the missing sections.

:100644 100644 e05048c... 9fcaa5c... M doc/misc/eshell.texi

On Wed, May 25, 2016 at 12:34 PM Alan Third <alan <at> idiocy.org> wrote:

> On Wed, May 25, 2016 at 07:18:55PM +0000, Eric Hanchrow wrote:
> > So you're saying that
> >
> > a) Emacs is deferring to Bash to do the completion in this case; and
> > b) bash is not ignoring case?
> >
> > I find both of those hard to believe -- particularly since if I type "cd
> > doc" at a shell prompt that's not inside emacs, but is in a Terminal.app,
> > it does what I want (namely: completes to "cd Documents").
> >
> > If a) is in fact correct, then I suppose Emacs is somehow starting the
> > shell differently than Terminal.app is.
>
> OK, I think I was talking rubbish. It looks like Emacs does do the
> completion.
>
> (BTW, this bug looks like it's OS X specific in debbugs even though
> it's reproducible in a GTK+ build on GNU/Linux too.)
> --
> Alan Third
>
[Message part 2 (text/html, inline)]

Added tag(s) moreinfo. Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Sun, 30 Jan 2022 21:49:02 GMT) Full text and rfc822 format available.

bug marked as fixed in version 29.1, send any further explanations to 14507 <at> debbugs.gnu.org and Eric Hanchrow <eric.hanchrow <at> gmail.com> Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Mon, 31 Jan 2022 15:17:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 01 Mar 2022 12:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 3 years and 113 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.