diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2016-08-03 16:27:47 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2016-08-03 16:28:24 +1200 |
commit | 7b2392c4ad351986617c4b474bad6a3d9cd30627 (patch) | |
tree | 44428b57bb257f604d2e022b55759d27b5374899 /man/man1/maybe.1 | |
parent | Remove unneeded quoting in tlcs(1) (diff) | |
download | dotfiles-7b2392c4ad351986617c4b474bad6a3d9cd30627.tar.gz dotfiles-7b2392c4ad351986617c4b474bad6a3d9cd30627.zip |
Change maybe(1) to POSIX sh, rename myb(1)
Diffstat (limited to 'man/man1/maybe.1')
-rw-r--r-- | man/man1/maybe.1 | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/man/man1/maybe.1 b/man/man1/maybe.1 deleted file mode 100644 index 9fd90c8b..00000000 --- a/man/man1/maybe.1 +++ /dev/null @@ -1,24 +0,0 @@ -.TH MAYBE 1 "February 2016" "Manual page for maybe" -.SH NAME -.B maybe -\- possibly exit with success -.SH USAGE -.B maybe [-hv] [-d DENOMINATOR] -.SH DESCRIPTION -Like true(1) or false(1), but exits with success randomly with a given -probability. Good for using in tests. Exits with 2 rather than 1 on usage -errors. -.P -This just uses integer division with Bash's special RANDOM variable, so it's -far from scientific precision. -.P -Option -h gives help, option -v turns on verbose output, option -d specifies -the denominator for the probability; defaults to 2 (i.e. roughly equal chance -of success or failure). -.P - $ maybe - $ maybe -v -d3 -.SH SEE ALSO -true(1), false(1), try(1) -.SH AUTHOR -Tom Ryder <tom@sanctum.geek.nz> |