From 6bee8387846199d8f50c26a1fe66bf357f4b65ab Mon Sep 17 00:00:00 2001 From: Junjie Mao Date: Thu, 12 Mar 2015 16:01:32 +0800 Subject: [PATCH] Messages may have escaped characters Signed-off-by: Junjie Mao --- labcodes/lab1/tools/grade.sh | 2 +- labcodes/lab2/tools/grade.sh | 2 +- labcodes/lab3/tools/grade.sh | 2 +- labcodes/lab4/tools/grade.sh | 2 +- labcodes/lab5/tools/grade.sh | 2 +- labcodes/lab6/tools/grade.sh | 2 +- labcodes/lab7/tools/grade.sh | 2 +- labcodes/lab8/tools/grade.sh | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/labcodes/lab1/tools/grade.sh b/labcodes/lab1/tools/grade.sh index f90d1a1..1a1ca26 100644 --- a/labcodes/lab1/tools/grade.sh +++ b/labcodes/lab1/tools/grade.sh @@ -105,7 +105,7 @@ show_msg() { echo $1 shift if [ $# -gt 0 ]; then - echo "$@" | awk '{printf " %s\n", $0}' + echo -e "$@" | awk '{printf " %s\n", $0}' echo fi } diff --git a/labcodes/lab2/tools/grade.sh b/labcodes/lab2/tools/grade.sh index 483b385..ba0e162 100644 --- a/labcodes/lab2/tools/grade.sh +++ b/labcodes/lab2/tools/grade.sh @@ -105,7 +105,7 @@ show_msg() { echo $1 shift if [ $# -gt 0 ]; then - echo "$@" | awk '{printf " %s\n", $0}' + echo -e "$@" | awk '{printf " %s\n", $0}' echo fi } diff --git a/labcodes/lab3/tools/grade.sh b/labcodes/lab3/tools/grade.sh index a6f2425..c4c6cab 100644 --- a/labcodes/lab3/tools/grade.sh +++ b/labcodes/lab3/tools/grade.sh @@ -105,7 +105,7 @@ show_msg() { echo $1 shift if [ $# -gt 0 ]; then - echo "$@" | awk '{printf " %s\n", $0}' + echo -e "$@" | awk '{printf " %s\n", $0}' echo fi } diff --git a/labcodes/lab4/tools/grade.sh b/labcodes/lab4/tools/grade.sh index 8d2b2bd..5ad73b0 100644 --- a/labcodes/lab4/tools/grade.sh +++ b/labcodes/lab4/tools/grade.sh @@ -105,7 +105,7 @@ show_msg() { echo $1 shift if [ $# -gt 0 ]; then - echo "$@" | awk '{printf " %s\n", $0}' + echo -e "$@" | awk '{printf " %s\n", $0}' echo fi } diff --git a/labcodes/lab5/tools/grade.sh b/labcodes/lab5/tools/grade.sh index 29db669..29e7f14 100644 --- a/labcodes/lab5/tools/grade.sh +++ b/labcodes/lab5/tools/grade.sh @@ -105,7 +105,7 @@ show_msg() { echo $1 shift if [ $# -gt 0 ]; then - echo "$@" | awk '{printf " %s\n", $0}' + echo -e "$@" | awk '{printf " %s\n", $0}' echo fi } diff --git a/labcodes/lab6/tools/grade.sh b/labcodes/lab6/tools/grade.sh index a3a52d0..bf48013 100644 --- a/labcodes/lab6/tools/grade.sh +++ b/labcodes/lab6/tools/grade.sh @@ -105,7 +105,7 @@ show_msg() { echo $1 shift if [ $# -gt 0 ]; then - echo "$@" | awk '{printf " %s\n", $0}' + echo -e "$@" | awk '{printf " %s\n", $0}' echo fi } diff --git a/labcodes/lab7/tools/grade.sh b/labcodes/lab7/tools/grade.sh index e8c68bd..7cd37cd 100644 --- a/labcodes/lab7/tools/grade.sh +++ b/labcodes/lab7/tools/grade.sh @@ -105,7 +105,7 @@ show_msg() { echo $1 shift if [ $# -gt 0 ]; then - echo "$@" | awk '{printf " %s\n", $0}' + echo -e "$@" | awk '{printf " %s\n", $0}' echo fi } diff --git a/labcodes/lab8/tools/grade.sh b/labcodes/lab8/tools/grade.sh index 920a344..0010361 100644 --- a/labcodes/lab8/tools/grade.sh +++ b/labcodes/lab8/tools/grade.sh @@ -105,7 +105,7 @@ show_msg() { echo $1 shift if [ $# -gt 0 ]; then - echo "$@" | awk '{printf " %s\n", $0}' + echo -e "$@" | awk '{printf " %s\n", $0}' echo fi }