aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2015-11-26 18:20:51 +1300
committerTom Ryder <tom@sanctum.geek.nz>2015-11-26 18:20:51 +1300
commite31f5443198fbbc92858c0d5c85a2ea660f46f3f (patch)
tree8e14144515f8d653209378f4291a5bb060e0b8b8
parentExperimental man(1) completion (diff)
downloaddotfiles-e31f5443198fbbc92858c0d5c85a2ea660f46f3f.tar.gz
dotfiles-e31f5443198fbbc92858c0d5c85a2ea660f46f3f.zip
Add explicit delimiter to print
-rw-r--r--bash/bashrc.d/man.bash2
1 files changed, 1 insertions, 1 deletions
diff --git a/bash/bashrc.d/man.bash b/bash/bashrc.d/man.bash
index 4994c379..f01e4dc0 100644
--- a/bash/bashrc.d/man.bash
+++ b/bash/bashrc.d/man.bash
@@ -58,7 +58,7 @@ _man() {
# Print the pages array to stdout, newline-separated; see above
# explanation
- (IFS=$'\n' ; printf %s "${pages[*]}")
+ (IFS=$'\n' ; printf '%s\0' "${pages[*]}")
)
}
complete -F _man -o default man