zsh-workers
 help / color / mirror / code / Atom feed
From: "Bart Schaefer" <schaefer@brasslantern.com>
To: Borsenkow Andrej <Andrej.Borsenkow@mow.siemens.ru>,
	"'Zsh hackers list'" <zsh-workers@sunsite.dk>
Subject: Re: completion in quotes - " vs ' - no suffix added
Date: Mon, 6 May 2002 15:31:37 +0000	[thread overview]
Message-ID: <1020506153137.ZM6413@candle.brasslantern.com> (raw)
In-Reply-To: <6134254DE87BD411908B00A0C99B044F035BB41F@mowd019a.mow.siemens.ru>

On May 6, 11:54am, Borsenkow Andrej wrote:
} Subject: completion in quotes - " vs ' - no suffix added
}
}   "-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" \
                                    ^^^^^^^
				    You might want to fix that before
				    you commit this completion ...
} 
} bor@itsrm2% mondoarchive -I "a\\ b
} Completing file
} a\\ b   c\\ d
} 
} no suffix added.

Hmm.  It's slightly worse than that ...

schaefer<510> functions _foo
_foo () {
        local suf="/ \t\n"
        [[ -n $compstate[quote] ]] && { suf="$compstate[quote]$suf" 
                compset -q }
        _files -r $suf
}
schaefer<511> compdef _foo foo         
schaefer<512> ls                 
don't stop/  rmthat/
schaefer<514> foo '<TAB>
Completing file
don\'\''t\ stop   rmthat/         
schaefer<514> foo "<TAB>
Completing file
don\\'t\\ stop   rmthat/        

Wrong number of backslashes in both cases; that's why the trailing suffix
didn't get added.  This looks similar to the problem we had with _values,
that Sven patched in 16998.

Same thing happens in 4.0.1, by the way, so this is not a new problem.

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


  reply	other threads:[~2002-05-06 15:35 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-05-06  7:54 Borsenkow Andrej
2002-05-06 15:31 ` Bart Schaefer [this message]
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

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=1020506153137.ZM6413@candle.brasslantern.com \
    --to=schaefer@brasslantern.com \
    --cc=Andrej.Borsenkow@mow.siemens.ru \
    --cc=zsh-workers@sunsite.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).