On 2018-12-26 at 12:35 -0500, Chet Ramey wrote:
> Yes, dirname should skip over a `--' denoting the end of options. Thanks
> for the report.
This was fixed on bash-20181226 snapshot (89b3a79), however with this
change on devel branch the basename builtin no longer compiles, as it
should have also included "bashgetopt.h".
Cheers
--- a/examples/loadables/basename.c
+++ b/examples/loadables/basename.c
@@ -30,6 +30,7 @@
#include "builtins.h"
#include "shell.h"
#include "common.h"
+#include "bashgetopt.h"
int
basename_builtin (list)