summaryrefslogtreecommitdiff
path: root/usr.sbin/pkg_add/OpenBSD/Add.pm
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2007-06-04 18:55:48 +0000
committerMarc Espie <espie@cvs.openbsd.org>2007-06-04 18:55:48 +0000
commit607d7d3def74c8ae4ad6591c8410d85773d80ff6 (patch)
tree7fa9c0641f2f8108effe49d0e269c1cd424c10ef /usr.sbin/pkg_add/OpenBSD/Add.pm
parent25d82b9da93421ba1710254be1ee6d96ef6a43cc (diff)
a few missed $' / $`
Diffstat (limited to 'usr.sbin/pkg_add/OpenBSD/Add.pm')
-rw-r--r--usr.sbin/pkg_add/OpenBSD/Add.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/Add.pm b/usr.sbin/pkg_add/OpenBSD/Add.pm
index cdf4a041e70..6a45b57cac3 100644
--- a/usr.sbin/pkg_add/OpenBSD/Add.pm
+++ b/usr.sbin/pkg_add/OpenBSD/Add.pm
@@ -1,5 +1,5 @@
# ex:ts=8 sw=4:
-# $OpenBSD: Add.pm,v 1.71 2007/06/04 14:40:39 espie Exp $
+# $OpenBSD: Add.pm,v 1.72 2007/06/04 18:55:47 espie Exp $
#
# Copyright (c) 2003-2007 Marc Espie <espie@openbsd.org>
#
@@ -204,8 +204,8 @@ sub add_entry
my $f = shift;
my $v = shift;
next if !defined $v or $v eq '';
- if ($v =~ m/^\!/o) {
- push(@$l, $f, $');
+ if ($v =~ m/^\!(.*)$/o) {
+ push(@$l, $f, $1);
} else {
push(@$l, $f, $v);
}