Missing colon in execlines export-array

From: Paul Sopka <psopka_at_sopka.ch>
Date: Thu, 13 Nov 2025 14:31:51 +0100

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

This archive was generated by hypermail 2.4.0 : Thu Nov 13 2025 - 14:32:29 CET