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.pull/1181/head
parent
e13df15451
commit
98c44fcc1e
|
|
@ -5,7 +5,7 @@ explain () {
|
||||||
about 'explain any bash command via mankier.com manpage API'
|
about 'explain any bash command via mankier.com manpage API'
|
||||||
param '1: Name of the command to explain'
|
param '1: Name of the command to explain'
|
||||||
example '$ explain # interactive mode. Type commands to explain in REPL'
|
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'
|
group 'explain'
|
||||||
|
|
||||||
if [ "$#" -eq 0 ]; then
|
if [ "$#" -eq 0 ]; then
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue