Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Problem with dir names containing spaces and parentheses
- X-seq: zsh-users 22594
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Zsh Users <zsh-users@xxxxxxx>
- Subject: Re: Problem with dir names containing spaces and parentheses
- Date: Mon, 20 Mar 2017 22:31:15 -0700
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=from:message-id:date:in-reply-to:comments:references:to:subject :mime-version; bh=g5KPlfWNQm4xxcBGCuIDXVc1LbkhQE5xOPOglI5elL0=; b=ALDU/2d8LFSVlJk3XW2UQyntKr6B4W1gqcLg3t/Exq32G9eby3XDmGlIY0ZcoVwWY7 twB9HRyNS1UMSuYL5tlGPJyFB+ObhF29lz5QD3OMZIIuBqQ8nTLalZxlwPWg2ufkLNXR 7crm5ZfjVHkoXz45/k7rtjiYEjY7/3AZncLDyqstOTHmfZqxJRASClkbLOYutiiDpNKm juiiVVFcizvWSaaj/wMdaWyz7PwC60bpQ4vXR06KhF7SzjR/cgX+E2IxyP5QQenywNdS 2Lg92BosBo5yVW0y/q9JsasLuBS5Tf0ajG0ZwXItD87b/fz4Ck/yp87maUnMKMWA5WQC luZg==
- In-reply-to: <CABZhJg8NLcYVcx23aAA9T+5UeaYMqWbNCpBvLsLKoGiZnTFPOg@mail.gmail.com>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <CABZhJg8NLcYVcx23aAA9T+5UeaYMqWbNCpBvLsLKoGiZnTFPOg@mail.gmail.com>
This is another one where follow-ups probably ought to go to zsh-workers.
On Mar 20, 9:26pm, Jesper Nygards wrote:
}
} zstyle ':completion:*' path-completion false
This takes the code branch in _path_files that has this comment:
# Explanation of substitution: For tmp1 and tpre, which are used further
# on, we need to remove quotes from everything that's not a pattern
# character, because the code that does the file generation only
# strips quotes from pattern characters (you know better than
# to ask why).
A bit later this happens:
# Now put donepath back the way it should be. (I think.)
donepath=${tmp3//(#b)([\\\]\[\^\~\(\)\#\*\?])/\\$match[1]}
pre=$tpre
This fails to re-quote the space in $donepath and also sets $pre to
the empty string (i.e., $tpre is empty), which breaks any further file
matching in the directory (down around line 427 of _path-files, for
those attempting to follow the bouncing ball). That's not the only
thing that's going on -- I'm beginning to thing $tmp3 isn't even the
right thing to be assigning to donepath at that point -- but that's
a hint of how tangled up this is.
} I get the same result with this zstyle instead of the previous one (or with
} both together):
}
} zstyle ':completion:*' accept-exact true
Entirely different reason; here the "compfiles" builtin is failing. I
am not going to attempt to delve into that.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author