base-files: New files to fix permission issues (was Re: 1.7.10/1.7.11: .Net programs started from a cygwin console may fail.)
Eric Blake
eblake@redhat.com
Mon Mar 5 16:38:00 GMT 2012
On 03/05/2012 07:13 AM, Nellis, Kenneth wrote:
> From: Corinna Vinschen
>
>> Thanks for the review. Like this?
>
> If you're open to improvements, the form
> x=$(($x + 1))
> could arguably be improved with any of the following:
> x=$((x + 1))
Still POSIX, and supported by /bin/sh (even where /bin/sh is dash)
> let x=x+1
> ((x=x+1))
> ((x++))
> ((++x))
all bash extensions, so requires /bin/bash.
Also, be careful of ((x++)) - if x starts life 0, then that sets $? to 1.
--
Eric Blake eblake@redhat.com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 620 bytes
Desc: OpenPGP digital signature
URL: <http://cygwin.com/pipermail/cygwin/attachments/20120305/686ca5de/attachment.sig>
More information about the Cygwin
mailing list