zsh-workers
 help / color / mirror / code / Atom feed
* completion in quotes - " vs ' - no suffix added
@ 2002-05-06  7:54 Borsenkow Andrej
  2002-05-06 15:31 ` Bart Schaefer
  0 siblings, 1 reply; 17+ messages in thread
From: Borsenkow Andrej @ 2002-05-06  7:54 UTC (permalink / raw)
  To: 'Zsh hackers list'

I stumbled upon that doing mondo completion. It is irrelevant for mondo
itself still it looks strange in general case.

With this completion (from _mondo) and menu selection active:

  "-E[exclude path(s) from backup]:paths to exclude from
backup:->quoted_path" \
  "-I[path(s) to backup]:paths to inlcude in backup:->quoted_path" \

  quoted_path )
    local suf="/ \t\n"
    [[ -n $compstate[quote] ]] && { suf="$compstate[quote]$suf"; compset -q;
}
    _files -r $suf && ret=0
  ;;

I get:

bor@itsrm2% l
a b/  c d/
bor@itsrm2% mondoarchive -I 'a\ b c\ d'
Completing file
a\ b/  c\ d/

this is O.K. (including auto-suffix removal) but with " I get

bor@itsrm2% mondoarchive -I "a\\ b
Completing file
a\\ b   c\\ d

no suffix added.

This is with the current CVS version.

-andrej


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

end of thread, other threads:[~2002-05-21  8:06 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-05-06  7:54 completion in quotes - " vs ' - no suffix added Borsenkow Andrej
2002-05-06 15:31 ` Bart Schaefer
2002-05-08  7:37   ` Sven Wischnowsky
2002-05-08  8:49     ` Borsenkow Andrej
2002-05-08 12:39       ` Sven Wischnowsky
2002-05-08 15:38         ` Bart Schaefer
2002-05-13  9:30           ` Sven Wischnowsky
2002-05-13 10:14             ` Borsenkow Andrej
2002-05-13 17:33               ` Bart Schaefer
2002-05-13 18:04                 ` Borsenkow Andrej
2002-05-14  7:44                   ` Sven Wischnowsky
2002-05-14 14:23                     ` Bart Schaefer
2002-05-14 14:31                       ` Bart Schaefer
2002-05-14 15:23                         ` Sven Wischnowsky
2002-05-14 15:35                           ` Borsenkow Andrej
2002-05-15  7:37                           ` Sven Wischnowsky
2002-05-21  8:06                     ` PATCH: " Sven Wischnowsky

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).