Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/sys_info Add a \ -- allows sys_info -v pkg_install t...
details: https://anonhg.NetBSD.org/src/rev/ba36a8ba475f
branches: trunk
changeset: 355948:ba36a8ba475f
user: kre <kre%NetBSD.org@localhost>
date: Wed Aug 23 19:18:38 2017 +0000
description:
Add a \ -- allows sys_info -v pkg_install to tell us who the version info
is obtained, rather than just how we go about printing the result.
diffstat:
usr.bin/sys_info/sys_info.sh | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (29 lines):
diff -r 9d39c71f7053 -r ba36a8ba475f usr.bin/sys_info/sys_info.sh
--- a/usr.bin/sys_info/sys_info.sh Wed Aug 23 18:15:53 2017 +0000
+++ b/usr.bin/sys_info/sys_info.sh Wed Aug 23 19:18:38 2017 +0000
@@ -1,6 +1,6 @@
#! /bin/sh
-# $NetBSD: sys_info.sh,v 1.9 2017/08/23 18:15:53 agc Exp $
+# $NetBSD: sys_info.sh,v 1.10 2017/08/23 19:18:38 kre Exp $
# Copyright (c) 2016 Alistair Crooks <agc%NetBSD.org@localhost>
# All rights reserved.
@@ -26,7 +26,7 @@
# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#
-SYS_INFO_VERSION=$( D="\$Date: 2017/08/23 18:15:53 $"; set -f;
+SYS_INFO_VERSION=$( D="\$Date: 2017/08/23 19:18:38 $"; set -f;
IFS=" /"; set -- $D; printf %s "$2$3$4" )
PATH=$(sysctl -n user.cs_path)
@@ -188,7 +188,7 @@
$all || return 0 ;&
pkg_info|pkg_install)
if which_prog infopath pkg_info; then
- run "printf 'pkg_install-%s\n' $(${infopath} -V)"
+ run "printf 'pkg_install-%s\n' \$(${infopath} -V)"
fi
$all || return 0 ;&
sh)
Home |
Main Index |
Thread Index |
Old Index