Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Another Dash vs. hyphen bug?
- X-seq: zsh-workers 47363
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: Another Dash vs. hyphen bug?
- Date: Sat, 5 Sep 2020 19:23:59 -0700
- Archived-at: <https://zsh.org/workers/47363>
- Archived-at: <http://www.zsh.org/sympa/arcsearch_id/zsh-workers/2020-09/CAH%2Bw%3D7a-V%3DUsUmp6PxkvB%2BX1N06T2dCoxKh3%2B-W0zqidayrV5w%40mail.gmail.com>
- Authentication-results: zsh.org; iprev=pass (mail-oi1-f182.google.com) smtp.remote-ip=209.85.167.182; dkim=pass header.d=brasslantern-com.20150623.gappssmtp.com header.s=20150623 header.a=rsa-sha256; dmarc=none header.from=brasslantern.com; arc=none
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=mime-version:from:date:message-id:subject:to; bh=QWWCJu4H/N4O4FSdrrL2S5fmcg+XFiI3ZD7hfpgoYug=; b=vRZzWu0qDJGMDckGAdKGGnW5FXlX5cLNBDKqALgeefty4jG82nK8dT44+3gvKoLyvm PWj/FzWeKNBbmblPzxzVYASxk1rG+QBUdZzlIk/w7sPwOSy0X1NDg6ICu8WKnIglWp/y QHTR0O1e54ADUPHVVrFeI1DpRZ+edekzhqnbEwMZiJddaSpPPWdALlzNogXzfPP1JC3R KDF/qTh0pBguae57fpd59HEobVRPgX6CZCqnDo9+JQrmmtqQTOZWFgt0Dhu0c9cF8nzF p+8rjO3CZrIHZnTQ39bfGLX1DCenStvL0ncD3rEB2gN2IklQGYqQw1kdQOKM7o0f7Ly8 loXQ==
- List-archive: <http://www.zsh.org/sympa/arc/zsh-workers>
- List-help: <mailto:sympa@zsh.org?subject=help>
- List-id: <zsh-workers.zsh.org>
- List-owner: <mailto:zsh-workers-request@zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- List-subscribe: <mailto:sympa@zsh.org?subject=subscribe%20zsh-workers>
- List-unsubscribe: <mailto:sympa@zsh.org?subject=unsubscribe%20zsh-workers>
- Sender: zsh-workers-request@xxxxxxx
The split doesn't work as expected in the first case below, probably
because the hyphen has been tokenized (or has failed to be
un-tokenized).
% print -r -- ${(@s.-.):-A-B}
A-B
% print -r -- ${(@s.-.):-A\-B}
A B
% ab=A-B
% print -r -- ${(@s.-.):-$ab}
A B
%
I'm not exactly sure what should happen in this case:
% print -r -- ${(@~s.-.):-A-B}
A B
%
Messages sorted by:
Reverse Date,
Date,
Thread,
Author