+= in bourne scripts
James Cloos
cloos at jhcloos.com
Sat Feb 14 09:41:08 PST 2009
>>>>> "Jeremy" == Jeremy Huddleston <jeremyhu at freedesktop.org> writes:
Jeremy> I've been seeing some '+=' syntax in some bourne scripts lately,
Jeremy> And now I see that libX11/acinclude.m4 hass it as well:
Jeremy> http://trac.macports.org/ticket/18485
Damn. I thought I had fixed that.
I added dolt to libX11 just before the revelation that += needed to be
replaced. Commit b4b5893f has been pushed with the same change which
was made to the dolt script in xserver:
- *) args+=("$arg")
+ *) args@<:@${#args[@]}@:>@="$arg" ;;
My understanding is that that should be compatible with Bourne shells in
general.
Thanks for the heads up!
-JimC
--
James Cloos <cloos at jhcloos.com> OpenPGP: 1024D/ED7DAEA6
More information about the xorg-devel
mailing list