Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
spaces not escaped when completion matches filename with spaces
- X-seq: zsh-workers 39720
- From: "Jason R. Coombs" <jaraco@xxxxxxxxxx>
- To: "zsh-workers@xxxxxxx" <zsh-workers@xxxxxxx>
- Subject: spaces not escaped when completion matches filename with spaces
- Date: Mon, 24 Oct 2016 20:19:06 +0000
- Accept-language: en-US
- Authentication-results: spf=none (sender IP is ) smtp.mailfrom=jaraco@xxxxxxxxxx;
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jaraco.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=PZyoNKrAf5/xCT04cd2PItbk5OP2j4nXWIDSRC2mCYA=; b=igNZ5uov8w95UgQNFwTbamslqSc3nQLlC/0AjzOYSnakgs5NiA6Wi26xgrp7dXOOUESyQuhPkhsoIIa7Au96Az7AnM8ew/g+K1L7+nmLQnijBSWpBmcKTlTKAUPnSrSSXSJbZqsaEv2GjDdaJJ9OxaCoQ71451s627zTlFK4vK0=
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- Spamdiagnosticmetadata: NSPM
- Spamdiagnosticoutput: 1:99
- Thread-index: AQHSLjPfCgxeWljkoUWD+WUf5CQwpw==
- Thread-topic: spaces not escaped when completion matches filename with spaces
I’ve encountered an issue where git completion matching a filename with spaces doesn’t escape the spaces for the command:
$ zsh --version
zsh 5.2 (x86_64-apple-darwin15.0.0)
$ git init foo
Initialized empty Git repository in /Users/jaraco/Dropbox/code/yg/queso/foo/.git/
$ cd foo
$ touch 'foo bar'
$ git add f^t
fatal: pathspec 'foo' did not match any files
The ^t represents a tab and completes “f” to “foo bar”, but without any escaping.
I’ve seen this issue reported for other commands.
Note that zsh doesn’t have this issue when resolving a filename for other commands such as ‘rm’.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author