- Manehattan MAS hub
- https://holanet.xyz
-
Sasha Koshka is the name I go by online. E-mail me if you have questions about that or about my projects in general.
- Joined on
2022-08-07
time(1p)
equivalent
Would a simple wrapper around https://doc.rust-lang.org/std/time/struct.SystemTime.html suffice?
From the doc:
Distinct from the Instant type, this time measurement is not monotonic.…
time(1p)
equivalent
This would just be an exec(2) and a couple timer calls, right? How precise does this need to be?
Having it be a shell builtin would not grant more precision. As for how precise, in bash, time…
kv(1)
- key/value
I definitely think this is a little too high-level to implement here as its own tool. We should aim to support this via other tools in harakit, though.
Perhaps it could be a shell builtin…
kv(1)
- key/value
ASV (#19) might be better than
=
. Multiple fields would also be nice, but may be overcomplicating the matter.
The idea is that you can also edit the file by hand
extensions of POSIX will not be found here.
This also sort of implies POSIX compliance
kv(1)
- key/value
As for what this could look like in a script:
config=~/.config/greeter.conf
timeOfDay=`kv get "$config" timeOfDay=morning`
name=`kv get "$config" name="$USER"`
echo good $timeOfDay,…
I'd like to suggest prohibiting the use of do-while loops. There is almost always a better way.