update newline fix
[ltt-control.git] / trunk / ltt-control / lttctl / ltt-disarmall.sh
index 12b6eff3386febef5cf3348f09c5c6d3bf587eb7..f9c626d409b3348198d3493cba96d8020334f1f6 100755 (executable)
@@ -3,8 +3,8 @@
 echo Disconnecting all markers
 MARKERS=`cat /proc/ltt|grep -v %k|awk '{print $2 " " $4}'|sort -u|grep -v ^metadata|grep -v ^locking|grep -v ^lockdep|grep -v ^tap`
 
-#separator is newline
-IFS=$
+#separator is newline, ensure compatibility with bash and ash
+IFS=$'\r'
 for a in $MARKERS; do echo Disconnecting $a; echo "disconnect $a" > /proc/ltt; done
 
 # Markers starting with "tap_" are considered high-speed.
@@ -14,8 +14,8 @@ MARKERS=`cat /proc/ltt|grep -v %k|awk '{print $2 " " $4}'|sort -u |grep ^tap`
 #Uncomment the following to also stop recording 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 Disconnecting $a
 
This page took 0.022258 seconds and 4 git commands to generate.