Live data from Hacker News

Cross-platform Rust rewrite of the GNU coreutils

github.com

1–10 of 498 posts

Re: Cross-platform Rust rewrite of the GNU coreutils

#4
Rewriting coreutils is neat, but a project I'd really look forward would be a strict POSIX base expanded with warnings or errors on valid but risky constructs e.g. echo -n. Even more so if it included a shell (with static analysis of useless uses and dangerous patterns). That would make writing cross-shell scripts much easier.

Re: Cross-platform Rust rewrite of the GNU coreutils

#9
post #5

The rationale talks about easy portability to Windows, but I'm skeptical - the underlying API and filesystem is different enough that this is likely to cause problems. '\' vs '/' to start with.

Windows supports forward-slash fine. Has for at least 25 years. No need to change / to \ or visa versa.

Now obviously any Windows port would have to call Win32 APIs instead of POSIX APIs (unless you're writing for a Cygwin-like layer).

Post reply on HN