From 5c7389e85f53d6f00a0c894467aa2db753aa5fd8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Lesimple?= Date: Wed, 20 Sep 2023 10:10:06 +0000 Subject: [PATCH] fix: when no command-line is passed, a warn could be emitted in some cases This depends on the version of Perl libs, but in any case we shouldn't pass an undef var to GetOptionsFromString, ensure this never happens --- bin/shell/osh.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/shell/osh.pl b/bin/shell/osh.pl index 6a35856..94c428b 100755 --- a/bin/shell/osh.pl +++ b/bin/shell/osh.pl @@ -346,7 +346,7 @@ else { my $remainingOptions; ($result, $remainingOptions) = GetOptionsFromString( - $beforeOptions, + $beforeOptions // "", "port|p=i" => \my $optPort, "verbose+" => \my $verbose, "tty|t" => \my $tty,