export-array from execline lacks a colon,
causing it to segfault when used with the -d switch.

diff --git a/src/execline/export-array.c b/src/execline/export-array.c
index d883c2d..8fa0fb0 100644
--- a/src/execline/export-array.c
+++ b/src/execline/export-array.c
@@ -25,7 +25,7 @@ int main (int argc, char const **argv)
     subgetopt l = SUBGETOPT_ZERO ;
     for (;;)
     {
-      int opt = subgetopt_r(argc, argv, "d", &l) ;
+      int opt = subgetopt_r(argc, argv, "d:", &l) ;
       if (opt == -1) break ;
       switch (opt)
       {

Best regards,
Paul

Attachment: signature.asc
Description: PGP signature

Reply via email to