From: espie Date: Mon, 23 Oct 2023 08:38:14 +0000 (+0000) Subject: split on spaces as well, to take advantage of += X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=7de4ceff6d75a53aa3604ecbc838df34f56ada0d;p=openbsd split on spaces as well, to take advantage of += --- diff --git a/usr.sbin/pkg_add/OpenBSD/AddCreateDelete.pm b/usr.sbin/pkg_add/OpenBSD/AddCreateDelete.pm index d22740cd6e2..6b3ae1114f7 100644 --- a/usr.sbin/pkg_add/OpenBSD/AddCreateDelete.pm +++ b/usr.sbin/pkg_add/OpenBSD/AddCreateDelete.pm @@ -1,5 +1,5 @@ # ex:ts=8 sw=4: -# $OpenBSD: AddCreateDelete.pm,v 1.56 2023/10/09 07:03:49 espie Exp $ +# $OpenBSD: AddCreateDelete.pm,v 1.57 2023/10/23 08:38:14 espie Exp $ # # Copyright (c) 2007-2014 Marc Espie # @@ -101,7 +101,8 @@ sub handle_options($state, $opt_string, @usage) } $state->{interactive} = $state->interactive_class($i)->new($state, $i); if ($state->defines('REGRESSION_TESTING')) { - for my $i (split(',', $state->defines('REGRESSION_TESTING'))) { + for my $i (split(/[,\s]/, + $state->defines('REGRESSION_TESTING'))) { $state->{regression}{$i} = 1; if (defined $setup->{$i}) { eval "$setup->{$i}";