Skip to content
This repository was archived by the owner on Mar 30, 2020. It is now read-only.

Commit b050eba

Browse files
Added details from README.
Added a few lines from the README to make the script able to stand alone in the system and not be a mystery as to its purpose.
1 parent 38496d0 commit b050eba

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

maybe

+10
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,16 @@
22
#
33
# maybe - companion to /usr/bin/true and /usr/bin/false.
44
#
5+
# In a similar vein to `true` and `false` the `maybe` command exits
6+
# with a status code of zero or one, depending on a random number.
7+
#
8+
# It can be useful in scripts which need to test-failures, or which
9+
# benefit from randomness.
10+
#
11+
# Example:
12+
# maybe && echo "I pass"
13+
# maybe || echo "I fail"
14+
#
515
# This should be installed in your system location, eg /usr/bin/maybe.
616
#
717
# 08-Nov-2004 ver 1.00

0 commit comments

Comments
 (0)