On 25.01.2019 15:35, Christos Zoulas wrote: > On Jan 25, 8:59pm, kre%munnari.OZ.AU@localhost (Robert Elz) wrote: > -- Subject: Re: CVS commit: src/bin/sleep > > | Sounds entirely reasonable, except the standards won't say anything > | relevant about sleep in particular, as only integers are supported there. > | The same is probably true of most other OS's (the BSDs probably > | excepted) as well. > | > | If OpenBSD haven't changed their code from what is in the original > | NetBSD PR, then they would only handle '.'. > | > | FreeBSD use scanf (%f) to parse the arg, which I assume means they > | they process the arg in a locale specific way, as scanf (sscanf really) > | should use locales, right. > | > | So not much help there either. > | > | What other commands take floating point args on the command line > | (aside from awk assignments to vars, which are certainly intended > | to be locale specific) I'm not sure I can think of one. > | > | So, where exactly should be look? > > Linux, Solaris, AIX, HP/UX <- is that still alive? We should also > try to contact our connections in the standards committees. Does > anyone know of other utilities that parse floating point numbers > entered from the command line (aside from awk and sleep)? > sort(1) bc(1) dc(1) timeout(1) printf(1) stat(1) > christos >
Attachment:
signature.asc
Description: OpenPGP digital signature