kre dd6b641408 Fixes to shell expand (that is, $ stuff) from FreeBSD (implemented
differently...)

In particular	${01} is now $1 not $0  (for ${0any-digits})

		${4294967297} is most probably now ""
			(unless you have a very large number of params)
		it is no longer an alias for $1  (4294967297 & 0xFFFFFFFF) == 1

		$(( expr $(( more )) stuff )) is no longer the same as
		$(( expr (( more )) stuff )) which was sometimes OK, as in:
			$(( 3 + $(( 2 - 1 )) * 3 ))
		but not always as in:
			$(( 1$((1 + 1))1 ))
		which should be 121, but was an arith syntax error as
			1((1 + 1))1
		is meaningless.

Probably some more.   This also sprinkles a little const, splits a big
func that had 2 (kind of unrelated) purposes into two simpler ones,
and avoids some (semi-dubious) modifications (and restores) in the input
string to insert \0's when they were needed.
2017-06-03 10:31:16 +00:00
..
2017-01-03 16:01:05 +00:00
2016-09-05 01:00:07 +00:00
2016-08-10 23:48:14 +00:00
2011-08-29 14:51:17 +00:00
2016-09-05 01:00:07 +00:00
2017-05-21 15:28:36 +00:00
2016-09-05 01:00:07 +00:00
2017-04-22 23:01:36 +00:00
2017-02-06 21:06:04 +00:00
2016-08-10 18:42:00 +00:00
2012-03-19 10:48:20 +00:00
2017-01-10 20:44:05 +00:00
2016-09-05 01:00:07 +00:00
2016-09-05 01:00:07 +00:00
2012-03-21 05:47:53 +00:00