update newline fix
[ltt-control.git] / trunk / ltt-control / lttctl / ltt-armall.sh
index a8d404bca8c95fd97a6f61dc1bd2c42c85d29434..5481b76148e4f2199c694ee90792af68d35b3b33 100755 (executable)
@@ -4,8 +4,8 @@
 echo Connecting all markers
 MARKERS=`cat /proc/ltt|grep -v %k|awk '{print $2 " " $4}'|sort -u|grep -v ^metadata|grep -v ^locking|grep -v ^lockdep`
 
-#separator is newline
-IFS=$
+#separator is newline, ensure compatibility with bash and ash
+IFS=$'\r'
 for a in $MARKERS; do
        echo Connecting $a
 
@@ -40,8 +40,8 @@ MARKERS=`cat /proc/ltt|grep -v %k|awk '{print $2}'|sort -u |grep ^tap_`
 #Uncomment the following to also record lockdep events.
 #MARKERS=`cat /proc/ltt|grep -v %k|awk '{print $2}'|sort -u|grep -e ^tap_ -e ^lockdep`
 
-#separator is newline
-IFS=$
+#separator is newline, ensure compatibility with bash and ash
+IFS=$'\r'
 for a in $MARKERS; do
        echo Connecting $a
 
This page took 0.023101 seconds and 4 git commands to generate.