summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2004-04-28 06:53:18 +0000
committerMarc Espie <espie@cvs.openbsd.org>2004-04-28 06:53:18 +0000
commit5052853316d455c968fce141cc3e37e59cf97683 (patch)
tree0d1596228102030f530b4de74ef2d6c88298abfc
parentf1a8f8a8a269fc9130712441a11947ca19cb17ad (diff)
Use the string version of system. Works with PAGER=less -s.
ho@
-rw-r--r--usr.sbin/pkg_add/pkg_add4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/pkg_add/pkg_add b/usr.sbin/pkg_add/pkg_add
index ac1543a4dbb..e0cdf715b11 100644
--- a/usr.sbin/pkg_add/pkg_add
+++ b/usr.sbin/pkg_add/pkg_add
@@ -1,7 +1,7 @@
#! /usr/bin/perl
# ex:ts=8 sw=4:
-# $OpenBSD: pkg_add,v 1.30 2004/03/30 08:55:56 espie Exp $
+# $OpenBSD: pkg_add,v 1.31 2004/04/28 06:53:17 espie Exp $
#
# Copyright (c) 2003 Marc Espie.
#
@@ -514,7 +514,7 @@ sub really_add($$)
add_installed($pkgname);
if ($plist->has(DISPLAY)) {
my $pager = $ENV{'PAGER'} || "/usr/bin/more";
- system($pager, $dir.DISPLAY);
+ system("$pager $dir".DISPLAY);
}
}