zsh-workers
 help / color / mirror / code / Atom feed
* Directory Name ?Bug
@ 2002-04-15  8:25 Adam McNeeney
  2002-04-15 15:45 ` Bart Schaefer
  0 siblings, 1 reply; 2+ messages in thread
From: Adam McNeeney @ 2002-04-15  8:25 UTC (permalink / raw)
  To: zsh-workers

Hi,

You may have already come accross this before, but I can't find a report of this on the website.

When I tab complete/type in with appropriate backslashes a directory name containing a single ' charocter and a space gets the complaint that there is an unmatched ' and brings you back to the prompt.

The only way that I have found to do anything with this directory is to escape appropriate characters _and_ put it in double quotes.

e.g.:
File name: don't stop
How I tried to refer to it: don\'t\ stop
How I had to refer to it: "don\'t\ stop"

If it's useful, I'm using zsh 4.0.4.

If it's just me doing something stupid then please let me know so I can stop doing it.

Thanks in advance,
-- 
Adam McNeeney
adam@meliorist.co.uk
-
The shortest distance between any two puns is a straight line.


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

* Re: Directory Name ?Bug
  2002-04-15  8:25 Directory Name ?Bug Adam McNeeney
@ 2002-04-15 15:45 ` Bart Schaefer
  0 siblings, 0 replies; 2+ messages in thread
From: Bart Schaefer @ 2002-04-15 15:45 UTC (permalink / raw)
  To: Adam McNeeney, zsh-workers

On Apr 15,  9:25am, Adam McNeeney wrote:
} Subject: Directory Name ?Bug
}
} When I tab complete/type in with appropriate backslashes a directory
} name containing a single ' charocter and a space gets the complaint
} that there is an unmatched ' and brings you back to the prompt.

First question, are you using the "new" completion system (loaded from
your startup files with `compinit') or are you using default completion
(based on the `compctl' command)?

If you're using `compinit', then instead of TAB, type ctrl-X and then a
question mark.  This will dump a debugging trace of the completion attempt
to a file in /tmp.  (There's no such facility with default completion.)

Does the "unmatched" error affect every command after which you attempt to
complete this directory, or only for `cd' commands, or ...?

} The only way that I have found to do anything with this directory is
} to escape appropriate characters _and_ put it in double quotes.

Define "do anything."  Does something go wrong in a case other than tab
completion?  *Exactly* what are you trying to complete -- the directory
name itself, or files inside that directory (where the whole directory
name is already on the command line)?

} e.g.:
} File name: don't stop
} How I tried to refer to it: don\'t\ stop
} How I had to refer to it: "don\'t\ stop"

This is not enough information.  We need to see the entire and exact
string that is present at the zsh prompt right before you press TAB.

} If it's useful, I'm using zsh 4.0.4.

The zsh version number is always essential.

I can't reproduce the behavior you describe, but I really don't know if
I'm trying the same things you are.

-- 
Bart Schaefer                                 Brass Lantern Enterprises
http://www.well.com/user/barts              http://www.brasslantern.com

Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net   


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

end of thread, other threads:[~2002-04-15 15:46 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-04-15  8:25 Directory Name ?Bug Adam McNeeney
2002-04-15 15:45 ` Bart Schaefer

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

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 NNTP newsgroup(s).