The command "help -s %" outputs
%: job_spec [&]
when it should output
%: % job_spec [&]
because the $SHORT_DOC for "%" in builtins/reserved.def is wrong.
The attached patch fixes this.
BTW, this is not the smallest bug ever reported:
see https://sourceware.org/bugzilla/show_bug.cgi?id=21399
Cheers -- Chris
diff -Naur bash-5.0/builtins/reserved.def bash-5.0-nonit/builtins/reserved.def
--- bash-5.0/builtins/reserved.def 2016-05-13 04:05:17.000000000 +1000
+++ bash-5.0-nonit/builtins/reserved.def 2019-09-21 16:25:05.465896269 +1000
@@ -175,7 +175,7 @@
$BUILTIN %
$DOCNAME fg_percent
-$SHORT_DOC job_spec [&]
+$SHORT_DOC % job_spec [&]
Resume job in foreground.
Equivalent to the JOB_SPEC argument to the `fg' command. Resume a