Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
suprise with -=
- X-seq: zsh-users 20793
- From: Ray Andrews <rayandrews@xxxxxxxxxxx>
- To: Zsh Users <zsh-users@xxxxxxx>
- Subject: suprise with -=
- Date: Sun, 18 Oct 2015 22:46:49 -0700
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
test1 ()
{
integer first=1
integer second=2
((first+=second))
echo $first
((first-=second))
echo $first
first+=second
echo $first
first-=second
echo $first
}
3
1
3
test1:15: command not found: first-=second
3
That's a bit of a surprise, why is zsh fussier with '-=' than with '+='?
Messages sorted by:
Reverse Date,
Date,
Thread,
Author