unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Shell Mode 'cd' Strangeness
@ 2008-01-14 18:54 gamename
  2008-01-14 20:41 ` Peter Dyballa
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: gamename @ 2008-01-14 18:54 UTC (permalink / raw)
  To: help-gnu-emacs

Hi,

Using tab-completion has a strange side-effect that I cannot explain.
I have a directory structure like this:
~/boojum/FooBar

If I try to cd to the FooBar dir using tab completion like this it
works:

> cd boojum/foo<tab><enter>

(Note the lowercase 'foo' and the absence of a leading "./" on the dir
name)

However, if I do the exact same thing, but this time pre-pending "./",
it will fail:

> cd ./boojum/foo<tab><enter>
bash: cd: ./boojum/fooBr/: No such file or directory

Any ideas why this would happen?  I have dot (".") in my path, so it
should work.   This is on bash on fedora 7.

TIA,
-T

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Shell Mode 'cd' Strangeness
  2008-01-14 18:54 Shell Mode 'cd' Strangeness gamename
@ 2008-01-14 20:41 ` Peter Dyballa
       [not found] ` <mailman.6125.1200343298.18990.help-gnu-emacs@gnu.org>
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 7+ messages in thread
From: Peter Dyballa @ 2008-01-14 20:41 UTC (permalink / raw)
  To: gamename; +Cc: help-gnu-emacs


Am 14.01.2008 um 19:54 schrieb gamename:

> Using tab-completion has a strange side-effect that I cannot explain.

Could you also provide some hint in which situation with which mode 
(s) this happens?

--
Greetings

   Pete

One cannot live by television, video games, top ten CDs, and dumb  
movies alone
				– Amiri Baraka, 1999

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Shell Mode 'cd' Strangeness
       [not found] ` <mailman.6125.1200343298.18990.help-gnu-emacs@gnu.org>
@ 2008-01-14 20:52   ` gamename
  0 siblings, 0 replies; 7+ messages in thread
From: gamename @ 2008-01-14 20:52 UTC (permalink / raw)
  To: help-gnu-emacs


Oops. Its in vanilla shell mode.

> Could you also provide some hint in which situation with which mode
> (s) this happens?
>

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Shell Mode 'cd' Strangeness
  2008-01-14 18:54 Shell Mode 'cd' Strangeness gamename
  2008-01-14 20:41 ` Peter Dyballa
       [not found] ` <mailman.6125.1200343298.18990.help-gnu-emacs@gnu.org>
@ 2008-01-14 23:01 ` Peter Dyballa
       [not found] ` <mailman.6128.1200351720.18990.help-gnu-emacs@gnu.org>
  3 siblings, 0 replies; 7+ messages in thread
From: Peter Dyballa @ 2008-01-14 23:01 UTC (permalink / raw)
  To: gamename; +Cc: help-gnu-emacs


Am 14.01.2008 um 19:54 schrieb gamename:

> However, if I do the exact same thing, but this time pre-pending "./",
> it will fail:
>
>> cd ./boojum/foo<tab><enter>
> bash: cd: ./boojum/fooBr/: No such file or directory
>
> Any ideas why this would happen?  I have dot (".") in my path, so it
> should work.   This is on bash on fedora 7.

This is definitely strange. Can you reproduce this also when  
launching GNU Emacs with -Q and removing ~/.emacs_bash and also all  
bash related RC files, including ~/.inputrc? Could be any of these is  
interfering. Is TAB bound to comint-dynamic-complete?

--
Greetings

   Pete

We also sponsor National Invisible Chronic Illness Awareness Week  
annually in September.
Join the millions

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Shell Mode 'cd' Strangeness
       [not found] ` <mailman.6128.1200351720.18990.help-gnu-emacs@gnu.org>
@ 2008-01-14 23:40   ` gamename
  2008-01-15  9:13     ` Peter Dyballa
       [not found]     ` <mailman.6137.1200388442.18990.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 7+ messages in thread
From: gamename @ 2008-01-14 23:40 UTC (permalink / raw)
  To: help-gnu-emacs

On Jan 14, 3:01 pm, Peter Dyballa <Peter_Dyba...@Web.DE> wrote:
> Am 14.01.2008 um 19:54 schrieb gamename:
>
> > However, if I do the exact same thing, but this time pre-pending "./",
> > it will fail:
>
> >> cd ./boojum/foo<tab><enter>
> > bash: cd: ./boojum/fooBr/: No such file or directory
>
> > Any ideas why this would happen?  I have dot (".") in my path, so it
> > should work.   This is on bash on fedora 7.
>
> This is definitely strange. Can you reproduce this also when
> launching GNU Emacs with -Q and removing ~/.emacs_bash and also all
> bash related RC files, including ~/.inputrc? Could be any of these is
> interfering. Is TAB bound to comint-dynamic-complete?
>
> --
> Greetings
>
>    Pete
>
> We also sponsor National Invisible Chronic Illness Awareness Week
> annually in September.
> Join the millions

When I start emacs with "-Q", the problem appears to go away.  If the
subdir "FooBar" is partially spelled, the completion will _not_ happen
unless the leading "F" is upper case. In no case does the shell care
if there is a leading "./" or not.

Example:
tnsfc7:~
> cd boojum/foo<tab><enter>
bash: cd: boojum/foo: No such file or directory
tnsfc7:~
> cd ./boojum/foo<tab><enter>
bash: cd: ./boojum/foo: No such file or directory
tnsfc7:~
> cd boojum/Foo<tab><enter>
tnsfc7:~/boojum/FooBar

tnsfc7:~
> cd ./boojum/Foo<tab><enter>
tnsfc7:~/boojum/FooBar
>

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Shell Mode 'cd' Strangeness
  2008-01-14 23:40   ` gamename
@ 2008-01-15  9:13     ` Peter Dyballa
       [not found]     ` <mailman.6137.1200388442.18990.help-gnu-emacs@gnu.org>
  1 sibling, 0 replies; 7+ messages in thread
From: Peter Dyballa @ 2008-01-15  9:13 UTC (permalink / raw)
  To: gamename; +Cc: help-gnu-emacs


Am 15.01.2008 um 00:40 schrieb gamename:

> When I start emacs with "-Q", the problem appears to go away.  If the
> subdir "FooBar" is partially spelled, the completion will _not_ happen
> unless the leading "F" is upper case. In no case does the shell care
> if there is a leading "./" or not.

So your customisation (or the system's settings) is the culprit. It  
works to break down the half of ~/.emacs (the other half is  
commented) that *does* introduce the fault, to a new half (a quarter  
of the original) that still does create the fault. Then you'll work  
with a faulty eighth, a faulty sixteenth ... of the original lines,  
until one statement is left: the responsible one.

--
Greetings

   Pete

A morning without coffee is like something without something else.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Shell Mode 'cd' Strangeness
       [not found]     ` <mailman.6137.1200388442.18990.help-gnu-emacs@gnu.org>
@ 2008-01-15 11:19       ` gamename
  0 siblings, 0 replies; 7+ messages in thread
From: gamename @ 2008-01-15 11:19 UTC (permalink / raw)
  To: help-gnu-emacs

> So your customisation (or the system's settings) is the culprit. It
> works to break down the half of ~/.emacs (the other half is
> commented) that *does* introduce the fault, to a new half (a quarter
> of the original) that still does create the fault. Then you'll work
> with a faulty eighth, a faulty sixteenth ... of the original lines,
> until one statement is left: the responsible one.

Agree.  That's what I'm doing. Thanks for the help.

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2008-01-15 11:19 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-14 18:54 Shell Mode 'cd' Strangeness gamename
2008-01-14 20:41 ` Peter Dyballa
     [not found] ` <mailman.6125.1200343298.18990.help-gnu-emacs@gnu.org>
2008-01-14 20:52   ` gamename
2008-01-14 23:01 ` Peter Dyballa
     [not found] ` <mailman.6128.1200351720.18990.help-gnu-emacs@gnu.org>
2008-01-14 23:40   ` gamename
2008-01-15  9:13     ` Peter Dyballa
     [not found]     ` <mailman.6137.1200388442.18990.help-gnu-emacs@gnu.org>
2008-01-15 11:19       ` gamename

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).