Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

expand tabs in output

  • Loading branch information...
commit ece99e901ff0428af15a5e55be7370930d753a60 1 parent 672db58
@geirha authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  evalcmd
View
2  evalcmd
@@ -7,7 +7,7 @@ while read -r trigger shell; do
done < ./triggers
[[ ${triggers[$t]} ]] || exit
-output=$(./limitcmd.pl "${triggers[$t]}" "$2" | head -c 4242 | tr -d '\r' | awk '{ do { print substr($0, 1, 120); $0 = substr($0, 121); } while(length($0)>0); }'; exit ${PIPESTATUS[0]}; )
+output=$(./limitcmd.pl "${triggers[$t]}" "$2" | expand | head -c 4242 | tr -d '\r' | awk '{ do { print substr($0, 1, 120); $0 = substr($0, 121); } while(length($0)>0); }'; exit ${PIPESTATUS[0]}; )
result=$?
lines=$(wc -l <<< "$output")
Please sign in to comment.
Something went wrong with that request. Please try again.