really fix newline
[ltt-control.git] / trunk / ltt-control / lttctl / ltt-armall.sh
index 5481b76148e4f2199c694ee90792af68d35b3b33..fe103d14a98ea3dc3c8e6a61a2f33c0911d0336c 100755 (executable)
@@ -5,7 +5,10 @@ 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, ensure compatibility with bash and ash
-IFS=$'\r'
+N="
+"
+
+IFS=${N}
 for a in $MARKERS; do
        echo Connecting $a
 
@@ -40,8 +43,7 @@ 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, ensure compatibility with bash and ash
-IFS=$'\r'
+IFS=${N}
 for a in $MARKERS; do
        echo Connecting $a
 
This page took 0.036868 seconds and 4 git commands to generate.