Talk:Implementations

From Geohashing
Revision as of 03:28, 28 May 2008 by 66.92.78.190 (talk)

Shell script broken?

Is it just me, or is the shell script implementation broken? --Psud 08:21, 26 May 2008 (UTC)

Actually, please refer to my comments on the main page discussion. --Psud 12:41, 26 May 2008 (UTC)
I've rewritten the script to incorporate some earlier suggestions I made (they were left on the main page's talk page when the implementations were moved) about portability (you seem to have been bitten by the slicing issue I was worried about). However, you will need to have dc installed no matter what.
Perhaps all the implementation discussion in Talk:Main_Page and its archives should be moved here? I don't even have an account, so I'll leave it to someone who knows what they're doing. --Decklin

Shell version bugs

While it runs on sh, ksh, and bash now, it still doesn't work on OpenBSD. If GNU date (which has the -d option) is not detected, I assume FreeBSD's -v is available; OpenBSD doesn't appear to have a comparable feature. Could someone test on OS X? No idea what's there (pretty sure they ship with wget, though).

Super brownie points if you can make it fallback to wget *or* fetch in one line so I can delete that stupid usage warning and have it run on FreeBSD out of the box. --Decklin