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 Use tcsh --version instead of an echo $vers...



details:   https://anonhg.NetBSD.org/src/rev/ab6d1b408ede
branches:  trunk
changeset: 826188:ab6d1b408ede
user:      martin <martin%NetBSD.org@localhost>
date:      Sun Aug 20 10:17:55 2017 +0000

description:
Use tcsh --version instead of an echo $version -- the old way did not
work for me (not quite sure why not).

diffstat:

 usr.bin/sys_info/sys_info.sh |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (20 lines):

diff -r d0849cf8668e -r ab6d1b408ede usr.bin/sys_info/sys_info.sh
--- a/usr.bin/sys_info/sys_info.sh      Sun Aug 20 09:47:13 2017 +0000
+++ b/usr.bin/sys_info/sys_info.sh      Sun Aug 20 10:17:55 2017 +0000
@@ -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 <agc%NetBSD.org@localhost>
 # All rights reserved.
@@ -107,7 +107,7 @@
                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



Home | Main Index | Thread Index | Old Index