zsh-workers
 help / color / mirror / code / Atom feed
* tar completion fails on tar files with colon in names
@ 2022-12-23 12:17 Mikhail Gusarov
  2022-12-24 11:17 ` Daniel Shahaf
  0 siblings, 1 reply; 4+ messages in thread
From: Mikhail Gusarov @ 2022-12-23 12:17 UTC (permalink / raw)
  To: zsh-workers

[-- Attachment #1: Type: text/plain, Size: 459 bytes --]

Hello.

GNU tar has a "feature" where it treats tar filenames with colons in it as
files on remote filesystems:

% tar tf x:foo
tar: Cannot connect to x: resolve failed
%

It has an option to disable this "helpful" behaviour:

% tar --force-local -tf x:foo
xx
%

However zsh completion for tar does not take it into account:

% zsh -f
% autoload -U compinit
% compinit
% tar --force-local -tf x:foo <TAB>tar: Cannot connect to x: resolve failed

Best,
Misha.

[-- Attachment #2: Type: text/html, Size: 750 bytes --]

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

end of thread, other threads:[~2022-12-30 20:50 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-23 12:17 tar completion fails on tar files with colon in names Mikhail Gusarov
2022-12-24 11:17 ` Daniel Shahaf
2022-12-24 14:44   ` Mikhail Gusarov
2022-12-30 20:50     ` Peter Stephenson

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