Add support for yorn(), safe yes-or-no prompt

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson committed 2019-05-29 15:57:11 +02:00
1 parent 7f053f7624
commit b2c2d032e8
7 files changed
+136 -2

No files matched your search

+5
View File
@@ -308,6 +308,11 @@ Generic Functions
**Note:** `which("/bin/ps aux")` will return `/bin/ps`, or `TRUE`,
provided of course `/bin/ps` exists.
- `yorn(fmt, ...)`
Pose a question to user, appended with `(y/N)?`, returns `TRUE` for
yes (both `y` and `Y` are handled) and `FALSE` for everything else.
GNU Functions
-------------