Module Name: src
Committed By: agc
Date: Mon Aug 21 19:36:57 UTC 2017
Modified Files:
src/usr.bin/sys_info: sys_info.sh
Log Message:
restore martin's change for tcsh versioning which got lost in the last update
To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 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.5 src/usr.bin/sys_info/sys_info.sh:1.6
--- src/usr.bin/sys_info/sys_info.sh:1.5 Mon Aug 21 19:22:31 2017
+++ src/usr.bin/sys_info/sys_info.sh Mon Aug 21 19:36:57 2017
@@ -1,6 +1,6 @@
#! /bin/sh
-# $NetBSD: sys_info.sh,v 1.5 2017/08/21 19:22:31 agc Exp $
+# $NetBSD: sys_info.sh,v 1.6 2017/08/21 19:36:57 agc Exp $
# Copyright (c) 2016 Alistair Crooks <[email protected]>
# All rights reserved.
@@ -136,7 +136,7 @@ getversion() {
;;
tcsh)
if which_prog tcshpath tcsh; then
- ${tcshpath} -c 'echo $version' | awk '{ print $1 "-" $2 }'
+ ${tcshpath} --version | awk '{ print $1 "-" $2 }'
else
echo "tcsh: not found"
fi