Re: [PATCH] for sh portability issue in davautocheck.sh
Max Bowsher wrote:
> Louis Guillaume wrote:
>> The attached patch should fix a portability problem in subversion/tests/cmdline/davautocheck.sh.
>> * subversion/tests/cmdline/davautocheck.sh
>> Fixed some instances of Bourne shell features that are not portable:
>> (1) Removed all instances of `==' in `test' or `[' statements.
>> (2) Replaced use of `$RANDOM' with `(( $$ % 32768 ))'.
> Why 32768?
> HTTPD_PORT=$(( $$ % 64511 + 1024 ))
> is a more suitable calculation.
Note that the use of $RANDOM seems entirely fine to me, so long as the
shebang line is still specifying /bin/bash explicitly.
Received on Wed Mar 28 02:53:29 2007
This is an archived mail posted to the Subversion Dev