Skip to contentSkip to conversation

xeno-test: replace 'head -3' with 'head -n 3'

PATCH Applied Jim Cromie 2 participants 2 messages Apr 13, 2006 – Apr 16, 2006

lore
Share & tools
lore

Jim Cromie

author
#0 lore raw

PATCH 1/1 xeno-test: replace 'head -3' with 'head -n 3'

heres an untested (still, low risk) patch for xeno-test which corrects an obsolete usage of head.

noted by Tobias Marschall on xeno-help.

xeno-test.in +1 -1
Index: scripts/xeno-test.in
===================================================================
@@ -90,7 +90,7 @@
     loudly cat /proc/interrupts
     loudly cat /proc/loadavg
     [ -n "$prepost" ] && loudly $prepost
-    loudly top -bn1c | head -$(( 12 + $workload ))
+    loudly top -bn1c | head -n $(( 12 + $workload ))
 }
 
 
#1 lore raw
Quoted 5 lines · Jim Cromie

heres an untested (still, low risk) patch for xeno-test which corrects an obsolete usage of head.

Applied, thanks.

Quoted 26 lines

noted by Tobias Marschall on xeno-help.

------------------------------------------------------------------------

Index: scripts/xeno-test.in
===================================================================

xeno-test.in +1 -2
@@ -90,7 +90,7 @@
     loudly cat /proc/interrupts
     loudly cat /proc/loadavg
     [ -n "$prepost" ] && loudly $prepost
-    loudly top -bn1c | head -$(( 12 + $workload ))
+    loudly top -bn1c | head -n $(( 12 + $workload ))
 }
 
 
 
 
------------------------------------------------------------------------

_______________________________________________
Xenomai-core mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-core

Signature · 1 line
Philippe.