Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [PATCH] explicitly mention ${name:/pat/repl}
- X-seq: zsh-workers 39885
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Re: [PATCH] explicitly mention ${name:/pat/repl}
- Date: Tue, 8 Nov 2016 22:39:34 -0800
- 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=A5MzLGIAHtOrvzbRGl8PMAQUAQhYXEsT8i9V4tnJyQQ=; b=iAYSOE8pTB4HqHpDwBYrt5sHwt08nEBl56bixr6Xa3w+obR1sHhLpeG782S9Bzl+NL RzZTHp6pVH7gBhSCz0q2MQZ8VytfOY9vXbkS0s7zG7odzMGqTDlPenYABO6hd4VHPnkj tGPbmHG8XEENtpt0uYaT66CDjMSMEau5o9rwLaDg6sU2rEqTa21i0Q6ZyrxtXT2Vekdr /7E5VC7CSy1GwF+G94UbeUDv5YGHnY2Dc3ooPEEi2nvlAWuTsvfln6DIP01rQr0YPCdx gJMPoV4rMM9TZ0yAurK6jTZh1orLSsOi5uiNpPGibUYhE8zDYhyFu/5USDhY3B5qgRnA LRZA==
- In-reply-to: <20161109051419.GA21675@fujitsu.shahaf.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: <161108101043.ZM10631@torch.brasslantern.com> <20161109051419.GA21675@fujitsu.shahaf.local2>
On Nov 9, 5:14am, Daniel Shahaf wrote:
} Subject: Re: [PATCH] explicitly mention ${name:/pat/repl}
}
} Bart Schaefer wrote on Tue, Nov 08, 2016 at 10:10:43 -0800:
} > -The first `tt(/)' may be preceded by a `tt(:)', in which case the match
} > -will only succeed if it matches the entire word. Note also the
} > +If tt(${)var(name)tt(}) expands to an array value, the replacements act
} > +on each element individually. Quoting may affect this. Note also the
}
} "Quoting may affect this"? This leaves me wondering what the effect is
} and under what circumstances it happens.
It just means that if you quote the expansion, it won't necessarily
be an array any more. There are too many ways this could happen to
enumerate them all every time it might apply.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author