mesalock-linux / mesabox

A collection of core system utilities written in Rust for Unix-like systems (and now Windows)
BSD 3-Clause "New" or "Revised" License
137 stars 19 forks source link

sleep: not consistent with the POSIX standard #26

Open mssun opened 6 years ago

mssun commented 6 years ago

I found that sleep is not consistent with the POSIX standard (http://pubs.opengroup.org/onlinepubs/9699919799/utilities/sleep.html). It's more like a GNU implementation.

Arcterus commented 6 years ago

I don’t really believe this is an issue (because I think the extension is useful). Technically, all of the utilities don’t follow POSIX to the letter as they have --help and --version, which aren’t specified.

Currently the division between the utilities in the gnu feature and the posix feature are that the gnu utilities are not even specified in POSIX and are just additional utilities available in GNU projects.

mssun commented 6 years ago

Ok, thank for the explanation. I would be good to write down our standard to implement functions. E.g., what kinds of functions are worth to extend besides POSIX. If tools not mentioned in POSIX, what is our philosophy to implement them. I guess this will help potential contributors to have a clear understanding of our goal. Otherwise, they may get confused.

Arcterus commented 6 years ago

That sounds like a good idea. We might want to revise how the utilities are split up as well.