aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2021-06-15 08:09:27 +0200
committerJohn Ankarström <john@ankarstrom.se>2021-06-15 08:09:27 +0200
commitfc37fb24c08602e112bcce8322d2a63cad7184fe (patch)
tree16adde5891719e42e4ccc09862064d9d04fe7202
parentefdf0b60531230b20c32e6736b6018c6005fbfed (diff)
downloaddwim-fc37fb24c08602e112bcce8322d2a63cad7184fe.tar.gz
Support apropos(1) output
-rwxr-xr-xdwim2
1 files changed, 1 insertions, 1 deletions
diff --git a/dwim b/dwim
index 1ede16d..49fd9f5 100755
--- a/dwim
+++ b/dwim
@@ -62,7 +62,7 @@ for ($phrase) {
# otherwise fall through
}
- if (/^([-_A-Za-z]+)\((\d+)\)[):,.]*$/) {
+ if (/^([-_A-Za-z]+) ?\((\d+)\)[):,.]*$/) {
handle 'manual(section)';
run @MAN_VIEWER, $2, $1;
}