From 7de4ceff6d75a53aa3604ecbc838df34f56ada0d Mon Sep 17 00:00:00 2001 From: espie Date: Mon, 23 Oct 2023 08:38:14 +0000 Subject: [PATCH] split on spaces as well, to take advantage of += --- usr.sbin/pkg_add/OpenBSD/AddCreateDelete.pm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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}"; -- 2.20.1