Module Name: src
Committed By: martin
Date: Sun Aug 20 10:17:55 UTC 2017
Modified Files:
src/usr.bin/sys_info: sys_info.sh
Log Message:
Use tcsh --version instead of an echo $version -- the old way did not
work for me (not quite sure why not).
To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/usr.bin/sys_info/sys_info.sh
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/usr.bin/sys_info/sys_info.sh
diff -u src/usr.bin/sys_info/sys_info.sh:1.3 src/usr.bin/sys_info/sys_info.sh:1.4
--- src/usr.bin/sys_info/sys_info.sh:1.3 Sat Aug 19 18:36:31 2017
+++ src/usr.bin/sys_info/sys_info.sh Sun Aug 20 10:17:55 2017
@@ -1,6 +1,6 @@
#! /bin/sh
-# $NetBSD: sys_info.sh,v 1.3 2017/08/19 18:36:31 agc Exp $
+# $NetBSD: sys_info.sh,v 1.4 2017/08/20 10:17:55 martin Exp $
# Copyright (c) 2016 Alistair Crooks <[email protected]>
# All rights reserved.
@@ -107,7 +107,7 @@ getversion() {
sshd -V 2>&1 | awk '/OpenSSH/ { sub("_", "D-", $1); print tolower($1) }'
;;
tcsh)
- grep '/tcsh' /etc/shells > /dev/null 2>&1 && tcsh -c 'echo $version' | awk '{ print $1 "-" $2 }'
+ grep '/tcsh' /etc/shells > /dev/null 2>&1 && tcsh --version | awk '{ print $1 "-" $2 }'
;;
unbound)
case $(uname -s) in