Webrev: "arithmetic syntax error" when working with non-commited changes

Magnus Ihse Bursie magnus.ihse.bursie at oracle.com
Tue May 5 21:36:56 UTC 2015


On 2015-05-04 14:56, Stanislav Baiduzhyi wrote:
> Hi All,
>
> I'm getting multiple "arithmetic syntax error" when working with non-commited
> changes. I've made a small fix, could anyone please take a look, and
> incorporate those changes into upstream if you like the fix?
>
> https://e5decb045a719fb58df46fd7e03c2f98cddc1ac6.googledrive.com/host/0B5Kp-cB1sXJrfk9NQTVHMTJTdWpYX3dWaExreWN0V0hQZ3d0eGIyZDltdHBCbmhYcXpzRFk/fix-arithmetic/
>

Hi Stanislav,

While the changes look reasonable, I'm curious why this hasn't surfaced 
as a problem before. The missing $ just looks plain broken, but why is 
the extra -n test needed?

What do you do to trigger the problem? What version of ksh are you using?

/Magnus


More information about the code-tools-dev mailing list