On 20/01/18 05:08, Chris Adams wrote:
> Once upon a time, Nico Kadel-Garcia <nka...@gmail.com> said:
>> I don't see any modern scripting language where a leading 0 would lead
>> to interpreting a number as octal.
> 
> I suggest you check again; I don't see any where a leading 0 does NOT
> lead to interpreting a number as octal  Here are a few common scripting
> languages (just what I have installed):
> 
> $ python -c 'print(010 + 1)'
> 9
> $ bash -c 'echo $((010 + 1))'
> 9
> $ perl -le 'print 010 + 1'
> 9
> $ ruby -e 'puts 010 + 1'
> 9
> $ d8 -e 'print(010 + 1)'
> 9
> 

Yes, bash and perl would be where I picked that up from, enough to want
to double-check. I kind of figured that if rpmbuild did interpret it as
octal, it probably would've blown things up well before now, just wanted
to make sure.

-- 
J. Randall Owens | http://www.GhiaPet.net/

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org

Reply via email to