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
_at__at_ -25,7 +25,7 _at__at_ 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
Received on Thu Nov 13 2025 - 14:31:51 CET