Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Completion in empty double-quotes generates error
- X-seq: zsh-workers 38231
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Re: Completion in empty double-quotes generates error
- Date: Fri, 1 Apr 2016 23:20:21 -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=HQlXTnCIrmCZt3sVkqLfnIqCeaeV9t1YAUHdsQXYrNY=; b=xKu+y2nE9OrpLe8ZAqUjAFt4nkct2vDMUNOJnFvaNgeMOuHQtGM1kKPlOJXtcVjhZb qGrd6E2q5b5Y18APK02E6bhqTkZvZm/KJI6HZGWHze8eQSg/mGaVlIOKXRjcEmwjwuv9 hFjaUUsNhecTd6knFUPFnAcavGDP8VU9clxHmqdZCQY+28WmhP72REkBirQ/cTtq/gs8 c1KfVQQp0VVideq2DbgY+GIa6gkqUWBvzLt91FljJmR6WYNsNFTTnaZrwJm0AmWWq0Cc LAcCN76ZJrIUK2SLaclz0Q6xCYgEiIoR2Ei6SWASVHx4zP5AYb3hdTTL/faRX0pniAak uaTA==
- In-reply-to: <20160402032950.GA10638@tarsus.local2>
- 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
- References: <160330110652.ZM1432@torch.brasslantern.com> <20160401053633.GA17993@tarsus.local2> <160401181824.ZM23675@torch.brasslantern.com> <20160402032950.GA10638@tarsus.local2>
On Apr 2, 3:29am, Daniel Shahaf wrote:
}
} I could try with your patch later and report the results, but I don't
} understand how to change it for the ": 2>1" variant?
Never mind; it's not the same bug -- I just re-read 37012 and realized
I was testing incorrectly; I can still reproduce (even with 38229 in
place).
In the redirection 2>1, gotword() has concluded that the word to be
completed is "1" rather than (a prefix of) "2". Rather than zlemetacs
moving backward to before wb, wb has moved forward to after zlemetacs.
This is probably because the lexer wants to treat "2>" as a single
token, but again the seemingly obvious thing (keep wb <= zlemetacs)
has bad side effects ("2>" is deleted, leaving "1" on the line).
Messages sorted by:
Reverse Date,
Date,
Thread,
Author