Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
$((++a++))
- X-seq: zsh-workers 41639
- From: Martijn Dekker <martijn@xxxxxxxx>
- To: Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: $((++a++))
- Date: Mon, 4 Sep 2017 22:45:46 +0200
- 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
Why is this accepted?
% a=1
% echo $((++a++))
2
% echo $((--a--))
1
Looks like that should be an invalid arithmetic expression.
- M.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author