eep(1) #103
2 Participants
Notifications
Due Date
No due date set.
Depends on
#96 testing
bonsai/harakit
Reference: bonsai/harakit#103
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "sleep"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This implements #83.
Can we call it
eep(1)?Sure but you have to rename it on the branch.
sleep(1)to eep(1)@ -0,0 +17,4 @@.SH DESCRIPTIONEep waits the given amount of seconds before exiting.@ -0,0 +41,4 @@seconds, five times, using rpn(1) and xargs(1p)..RS.R $ rpn 60 5 '*' | xargs eep.Ris invalid man roff.@ -0,0 +46,4 @@.SH COPYRIGHTCopyright (c) 2024 DTB. License AGPLv3+: GNU AGPL version 3 or later@ -0,0 +51,4 @@.SH SEE ALSOsleep(3)Should you reference
sleep(1p)as well?@ -0,0 +16,4 @@.SH DESCRIPTIONSleep waits the given amount of seconds before exiting.Wait a number of seconds before exiting.
@ -0,0 +21,4 @@.SH DIAGNOSTICSSleep exits successfully when the time specified has elapsed, or unsuccessfullyif the time fails to elapse or if invoked incorrectly. In the latter scenarioFor parity with other man pages.
@ -0,0 +26,4 @@.SH BUGSUser may still be tired after invoking sleep.@ -0,0 +30,4 @@.SH EXAMPLESThe following invocation sleeps for five seconds.@ -0,0 +27,4 @@use sysexits::EX_USAGE;fn usage(s: &str) -> ExitCode {eprintln!("Usage: {} [seconds]", s);A patch containing my recommended changes:
@ -121,0 +122,4 @@eep: build/bin/eepbuild/bin/eep: src/eep.rs build rustlibs$(RUSTC) $(RUSTFLAGS) \--extern sysexits=build/o/libsysexits.rlib \This is unnecessary due to the merge-in of the main branch:
$(RUSTLIBS)was introduced.This is now out-of-date;
$(RUSTLIBS)has been removed in favor of appending to$(RUSTFLAGS).@ -0,0 +35,4 @@let argv = args().collect::<Vec<String>>();if argv.len() == 2 {if let Ok(s) = argv[1].parse::<u64>() {This could theoretically be a
u128to allow larger numbers.Perhaps that can be a feature for coma(1).
Duration::from_secs needs a u64 which was the basis of that decision.
Pull request closed