Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

tar completion fails on tar files with colon in names



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.



Messages sorted by: Reverse Date, Date, Thread, Author