Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
\" in $(( )) vs $[ ]
- X-seq: zsh-workers 29774
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: zsh workers <zsh-workers@xxxxxxx>
- Subject: \" in $(( )) vs $[ ]
- Date: Thu, 15 Sep 2011 12:17:44 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; bh=vuGNz/6JUmjVco9L0cLRYK3Ai6IamuTE9vU1w/omu70=; b=WaoG9wFvHbpnaB7haZWWOeFHum4P1yPmNKIIUk9R2In9Z73YzOyQ/GP4ipD8xVJ1Fb J18zeglo8IVE+S2Dl0xGTNj6IRR9W6mbwgm1XfiWdYSnr1grN7hT7yrwYyHlV8RoGMLP bcRQUDpV+eVoAkObnO2PIzSql9LUOCcEU7Ghs=
- 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
% echo $(( ##\' ))
39
% echo $[ ##\" ]
34
% echo $(( ##\" ))
<cmdsubst:~>%
and tangentially, why does the above also work with only one #?
% a=b
% echo $[ #a ]
98
% echo $[ ##a ]
97
% echo $[ #\' ]
39
% echo $[ #\" ]
34
--
Mikael Magnusson
Messages sorted by:
Reverse Date,
Date,
Thread,
Author