Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Bug#239070: zsh: scp completion expands * too soon (patch)
- X-seq: zsh-workers 19668
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: Re: Bug#239070: zsh: scp completion expands * too soon (patch)
- Date: Sun, 21 Mar 2004 01:49:49 +0000
- Cc: 239070@xxxxxxxxxxxxxxx
- In-reply-to: <20040320214200.GA22845@xxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <200403201750.i2KHo83C009843@xxxxxxxxxxxxxx> <20040320214200.GA22845@xxxxxxxxxxx>
On Mar 20, 4:42pm, Clint Adams wrote:
}
} I think the tmda-like thing on the zsh lists probably blocked your
} message, so I'm just going to quote your entire report in reply.
bugs.debian.org is probably going to block _my_ reply next, but I'll try
it anyway.
} On Sat, Mar 20, 2004 at 12:50:08PM -0500, Jay Berkenbilt wrote:
} >
} > In a recent upgrade to zsh, completion for scp broke when resolving
} > remote files. There are two problems: wildcards are expanded too
} > soon, and completion through symbolic links to directories doesn't
} > work right (no trailing slash is provided).
} >
} > Here's the patch.
} >
} > - remfiles=(${(M)${(f)"$(_call_program files ssh $args -a -x ${IPREFIX%:} ls -d1F ${(Q)PREFIX%%[^./][^/]#}\* 2>/dev/null)"}%%[^/]#(|/)})
} > + remfiles=(${(M)${(f)"$(ssh $args -a -x ${IPREFIX%:} ls -d1FL ${(Q)PREFIX%%[^./][^/]#}\* 2>/dev/null)"}%%[^/]#(|/)})
Thanks, but this is not the right way to fix the first of these two
issues. The use of "_call_program files" is intentional, and necessary
for certain zstyle settings to work.
The right solution is simply to put double quotes around the "${(Q)...}\*"
expression.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author