zsh-users
 help / color / mirror / code / Atom feed
* suprise with -=
@ 2015-10-19  5:46 Ray Andrews
  2015-10-19 18:35 ` Bart Schaefer
  0 siblings, 1 reply; 14+ messages in thread
From: Ray Andrews @ 2015-10-19  5:46 UTC (permalink / raw)
  To: Zsh Users



    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 '+='?


^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2015-10-23  7:34 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-10-19  5:46 suprise with -= Ray Andrews
2015-10-19 18:35 ` Bart Schaefer
2015-10-19 19:34   ` Ray Andrews
2015-10-20  0:27     ` Bart Schaefer
2015-10-21  2:55       ` Ray Andrews
2015-10-21  3:52         ` Bart Schaefer
2015-10-21 18:01       ` Ray Andrews
2015-10-21 18:43         ` ZyX
2015-10-22 15:29           ` Ray Andrews
2015-10-22 15:43             ` ZyX
2015-10-22 16:02               ` Ray Andrews
2015-10-22 23:56               ` Bart Schaefer
2015-10-23  7:34                 ` Daniel Shahaf
2015-10-21 18:46         ` Bart Schaefer

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).