2023-12-24 17:13:17 -07:00
|
|
|
|
“Seek not to walk the path of the masters; seek what they sought.”
|
|
|
|
|
– Matsuo Basho
|
|
|
|
|
|
2024-06-23 23:34:23 -06:00
|
|
|
|
The Bonsai harakit utilities are a replacement for standard POSIX utilities
|
|
|
|
|
which aim to fill its niche while expanding on their capabilities. These new
|
|
|
|
|
tools are the result of the careful examination of the current state of POSIX
|
|
|
|
|
and Unix utilies. The Unix Philosophy of “do one thing and do it well” are their
|
|
|
|
|
core but they avoid clinging to the past.
|
2023-12-24 17:13:17 -07:00
|
|
|
|
|
|
|
|
|
The era of the original Unix tools has been long and fruitful, but they have
|
2024-06-23 23:34:23 -06:00
|
|
|
|
their flaws. This project originated from frustrations with the way certain
|
|
|
|
|
tools work and how other projects that extend POSIX don’t make anything better.
|
2023-12-24 17:13:17 -07:00
|
|
|
|
|
|
|
|
|
This project will not follow in the footsteps of GNU; extensions of POSIX will
|
|
|
|
|
not be found here. GNU extensions are a gateway to the misuse of the shell. The
|
2024-06-23 23:34:23 -06:00
|
|
|
|
harakit utilities will intentionally discourage use of the shell for purposes
|
|
|
|
|
beyond its scope.
|
2023-12-24 17:13:17 -07:00
|
|
|
|
|
|
|
|
|
See docs/ for more on the specific utilities currently implemented.
|
|
|
|
|
|
2024-02-07 21:27:43 -07:00
|
|
|
|
Building
|
|
|
|
|
|
2024-06-23 23:34:23 -06:00
|
|
|
|
Harakit utilities require a POSIX-compliant environment to compile, including a
|
|
|
|
|
C compiler and preprocessor (cc(1) and cpp(1) by default), an edition 2023 Rust
|
2024-06-02 19:15:23 -06:00
|
|
|
|
compiler (rustc(1) by default), bindgen(1), and a POSIX-compliant make(1)
|
|
|
|
|
utility.
|
2024-02-07 21:27:43 -07:00
|
|
|
|
|
|
|
|
|
To build and install:
|
|
|
|
|
|
|
|
|
|
$ make
|
|
|
|
|
$ make PREFIX="/your/preferred/location" install
|
|
|
|
|
|
|
|
|
|
To build with a different compiler than the default:
|
|
|
|
|
|
2024-02-16 21:02:00 -07:00
|
|
|
|
$ make CC=clang
|
|
|
|
|
$ make RUSTC=gccrs
|
2024-02-07 21:27:43 -07:00
|
|
|
|
|
|
|
|
|
To test the utilities:
|
|
|
|
|
|
|
|
|
|
$ make test
|
|
|
|
|
|
2024-06-19 02:52:58 -06:00
|
|
|
|
To remove all build and distributable files:
|
2024-02-07 21:27:43 -07:00
|
|
|
|
|
|
|
|
|
$ make clean
|
|
|
|
|
|
2023-12-24 17:13:17 -07:00
|
|
|
|
Read More
|
|
|
|
|
|
|
|
|
|
An Introduction to the Unix Shell
|
|
|
|
|
<https://porkmail.org/era/unix/shell>
|
|
|
|
|
|
|
|
|
|
Master Foo and the Ten Thousand Lines
|
|
|
|
|
<http://www.catb.org/~esr/writings/unix-koans/ten-thousand.html>
|
|
|
|
|
|
|
|
|
|
Master Foo Discourses on the Unix-Nature
|
|
|
|
|
<http://www.catb.org/~esr/writings/unix-koans/unix-nature.html>
|
|
|
|
|
|
|
|
|
|
Shell Programming!
|
|
|
|
|
<https://tldp.org/LDP/abs/html/why-shell.html>
|
2024-02-07 21:27:43 -07:00
|
|
|
|
|
|
|
|
|
--
|
2024-02-16 21:02:00 -07:00
|
|
|
|
Copyright © 2023–2024 Emma Tebibyte <emma@tebibyte.media>
|
|
|
|
|
Copyright © 2024 DTB <trinity@trinity.moe>
|
|
|
|
|
|
|
|
|
|
This work is licensed under CC BY-SA 4.0. To view a copy of this license, visit
|
|
|
|
|
<http://creativecommons.org/licenses/by-sa/4.0/>.
|