Fix quoting in the Explain plugin

Fixes bug where Bash prints a "command not found" message when the
function is run, due to incorrect quoting of the argument to the
meta function example.
This commit is contained in:
Ricardo Lima
2018-04-21 21:55:42 -04:00
parent e13df15451
commit 98c44fcc1e

View File

@@ -5,7 +5,7 @@ explain () {
about 'explain any bash command via mankier.com manpage API'
param '1: Name of the command to explain'
example '$ explain # interactive mode. Type commands to explain in REPL'
example '$ explain 'cmd -o | ...' # one quoted command to explain it.'
example '$ explain '"'"'cmd -o | ...'"'"' # one quoted command to explain it.'
group 'explain'
if [ "$#" -eq 0 ]; then