[PATCH 03/32] ver_linux: execute 'uname -a' from awk
From: Alexander Kapshuk
Date: Tue Jun 28 2016 - 06:28:03 EST
Execute 'uname -a' using the awk system() function.
Signed-off-by: Alexander Kapshuk <alexander.kapshuk@xxxxxxxxx>
---
scripts/ver_linux | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/scripts/ver_linux b/scripts/ver_linux
index 2f1d494..c509f09 100755
--- a/scripts/ver_linux
+++ b/scripts/ver_linux
@@ -9,8 +9,8 @@ BEGIN {
usage = usage "Compare to the current minimal requirements in Documentation/Changes.\n"
print usage
-uname -a
-echo ' '
+ system("uname -a")
+ printf("\n")
gcc -dumpversion 2>&1 |
awk '/[0-9]+([.]?[0-9]+)+/ && !/not found$/{
--
2.7.3