bmarwell commented on PR #117:
URL: https://github.com/apache/maven-wrapper/pull/117#issuecomment-1923203779
> My test:
>
> ```
> hash_string() {
> str="${1:-}" h=0
> while [ -n "$str" ]; do
> c="${str%${str#?}}"
> h=$(( ( h * 31 + $(LC_CTYPE=C printf %d "'$c") ) % 4294967296 ))
> str="${str#?}"
> done
> printf %x\\n $h
> }
> ```
>
> @bmarwell can you try on AIX?
sadly...
```
# vi test.sh
# ksh test.sh
"https://reopsitory/repository/maven-central/org/apache/maven/apache-maven/3.9.6/apache-maven-3.9.6-bin.zip"
printf: 2589392689: A return value of a math subroutine is not within
machine precision.
7fffffff
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]