zsh-workers
 help / color / mirror / code / Atom feed
From: "Andrej Borsenkow" <borsenkow.msk@sni.de>
To: "Sven Wischnowsky" <wischnow@informatik.hu-berlin.de>,
	<zsh-workers@sunsite.auc.dk>
Subject: RE: PATCH: cleanup in zle_tricky.c
Date: Mon, 22 Mar 1999 16:02:44 +0300	[thread overview]
Message-ID: <000901be7464$46fd2760$21c9ca95@mowp.siemens.ru> (raw)
In-Reply-To: <199903221056.LAA07941@beta.informatik.hu-berlin.de>

> - compstate[pattern_match] is normally set to `*'. If it is set to a
>   string not starting with a star, the code will not automatically
>   insert one at the cursor position.

I don't understand this difference (with globcomplete unset):

bor@itsrm2:/tools/src/zsh-3.1.5-pws-13%> l D/z*iTAB
bor@itsrm2:/tools/src/zsh-3.1.5-pws-13%> l Doc/z*iTAB
bor@itsrm2:/tools/src/zsh-3.1.5-pws-13%> l Doc/zsh.texi

  *really* fine

but

bor@itsrm2:/tools/src/zsh-3.1.5-pws-13%> l /u/i/s/*.hTAB
  b-e-e-p

/u/i/s expands to (single) /usr/include/sys - at least, if the last
component is considered directory:

bor@itsrm2:/tools/src/zsh-3.1.5-pws-13%> ls -d /usr/include/s*(/)
/usr/include/sys

Another one that puzzled me:

bor@itsrm2:/tools/src/zsh-3.1.5-pws-13/Completion%> cp -rp
{Core,Base,Builtin} ~
/.zsh.d/Completion
cp: Cannot access Builtin: No such file or directory
bor@itsrm2:/tools/src/zsh-3.1.5-pws-13/Completion%> cp -rp
{Core,Base,Builtin} ~ /.zsh.d/Completion

I moved cursor before closing bracket (BuiltinCURSOR}) and pressed TAB -
with the result BEEP (this with GLOB_COMPLETE set). If GLOB_COMPLETE is
unset, I get (after TAB):

bor@itsrm2:/tools/src/zsh-3.1.5-pws-13/Completion%> cp -rp Core Base Builtin
~/
.zsh.d/Completion

Now, the first is correct (I need COMPLETE_IN_WORD for this to work). But
what is the second?

Do I understand it correctly, that now * is always added if GLOB_COMPLETE is
set (and never added is GLOB_COMPLETE is unset)? Und is globbing ever done
at all? I mean, normally, Doc/z*i should be globbed before completion even
starts - now (with GLOB_COMPLETE) this is the same as Doc/z*i*.

cheers

/andrej



  reply	other threads:[~1999-03-22 13:04 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-03-22 10:56 Sven Wischnowsky
1999-03-22 13:02 ` Andrej Borsenkow [this message]
1999-03-22 13:11 ` And even worse ... " Andrej Borsenkow
1999-03-22 13:55 Sven Wischnowsky
1999-03-22 14:09 ` Andrej Borsenkow
1999-03-22 14:17 ` Andrej Borsenkow
1999-03-22 14:28 Sven Wischnowsky
1999-03-22 15:32 ` Andrej Borsenkow
1999-03-22 15:29 Sven Wischnowsky
1999-03-22 15:43 Sven Wischnowsky
1999-03-22 17:45 ` Andrej Borsenkow
1999-03-23  9:51 Sven Wischnowsky
1999-03-24 10:41 ` Andrej Borsenkow
1999-03-24 12:29 Sven Wischnowsky

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='000901be7464$46fd2760$21c9ca95@mowp.siemens.ru' \
    --to=borsenkow.msk@sni.de \
    --cc=wischnow@informatik.hu-berlin.de \
    --cc=zsh-workers@sunsite.auc.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).