Revision: 116
http://c-mpi.svn.sourceforge.net/c-mpi/?rev=116&view=rev
Author: jmwozniak
Date: 2010-05-14 18:48:03 +0000 (Fri, 14 May 2010)
Log Message:
-----------
Actually add shell function col()
Modified Paths:
--------------
tools/test-helpers.zsh
Modified: tools/test-helpers.zsh
===================================================================
--- tools/test-helpers.zsh 2010-05-14 18:42:38 UTC (rev 115)
+++ tools/test-helpers.zsh 2010-05-14 18:48:03 UTC (rev 116)
@@ -1,6 +1,23 @@
# Sourced by tests for reusable functionality
+col()
+# Select columns from input without awk
+{
+ local L
+ local -Z c
+ local A
+ while read L
+ do
+ A=( $( print ${L} ) )
+ for c in ${*}
+ do
+ printf "${A[c]} "
+ done
+ printf "\n"
+ done
+}
+
USE_COMM_WORLD=$( grep USE_COMM_WORLD cmpi-config.h | col 3 )
crash()
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|