kre e76b58b2db In uses like $(( var )) (un-dollared vars in arithmetic) we allow
leading whitespace in the value of var (because strtoimax() does)
but did not allow trailing whitespace.   The effect is that some
cases where $(( ${var:-0} )) would work do not work without the $
expansion.

Fix that - allow trailing whitespace.   However, continue to insist
upon at least one digit (a non-null var that contains nothing but
whitespace is still an error).

Note: posix is not helpful here, it simply requires that the variable
contain "a value that forms a valid integer constant" (with an optional
+ or - sign).
2018-04-21 23:01:29 +00:00
..
2017-10-02 08:24:17 +00:00
2017-10-16 17:08:35 +00:00
2017-07-04 06:50:04 +00:00
2018-03-19 03:11:39 +00:00
2017-07-04 06:50:04 +00:00
2017-10-30 15:38:52 +00:00
2017-10-18 18:11:54 +00:00