eep(1) #103
No reviewers
Labels
No Label
bug
duplicate
enhancement
help wanted
invalid
joke
question
wontfix
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Depends on
#96 testing
bonsai/harakit
Reference: bonsai/harakit#103
Loading…
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 DESCRIPTION
Eep 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
.R
is invalid man roff.@ -0,0 +46,4 @@
.SH COPYRIGHT
Copyright (c) 2024 DTB. License AGPLv3+: GNU AGPL version 3 or later
@ -0,0 +51,4 @@
.SH SEE ALSO
sleep(3)
Should you reference
sleep(1p)
as well?@ -0,0 +16,4 @@
.SH DESCRIPTION
Sleep waits the given amount of seconds before exiting.
Wait a number of seconds before exiting.
@ -0,0 +21,4 @@
.SH DIAGNOSTICS
Sleep exits successfully when the time specified has elapsed, or unsuccessfully
if the time fails to elapse or if invoked incorrectly. In the latter scenario
For parity with other man pages.
@ -0,0 +26,4 @@
.SH BUGS
User may still be tired after invoking sleep.
@ -0,0 +30,4 @@
.SH EXAMPLES
The 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/eep
build/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
u128
to 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.
Checkout
From your project repository, check out a new branch and test the changes.