From 91a3c7c11f0c0faf9eb5c170cd46c1465f696721 Mon Sep 17 00:00:00 2001 From: brayra Date: Thu, 16 Jul 2009 19:09:52 +0000 Subject: [PATCH] Output of bacrp command has return+line-feed dos style output. Added return+line-feed to echo statements to keep output consistent if piped to a file. It will now create a valid DOS file. --- bacnet-stack/bin/bacrpd.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bacnet-stack/bin/bacrpd.sh b/bacnet-stack/bin/bacrpd.sh index 0e9caf8f..43a93f05 100644 --- a/bacnet-stack/bin/bacrpd.sh +++ b/bacnet-stack/bin/bacrpd.sh @@ -38,7 +38,7 @@ fi run_test() { - echo "Test: Read Required Properties of Device Object $1" + echo -e -e "Test: Read Required Properties of Device Object $1\r" echo -n "OBJECT IDENTIFIER:" ./bacrp $1 8 $1 75 echo -n "OBJECT NAME:" @@ -82,7 +82,7 @@ run_test() echo -n "DATABASE REVISION:" ./bacrp $1 8 $1 155 if [ $OPTIONAL -eq 1 ] ; then - echo "Test: Read Optional Properties of Device Object $1" + echo -e "Test: Read Optional Properties of Device Object $1\r" echo -n "LOCATION:" ./bacrp $1 8 $1 58 echo -n "DESCRIPTION:" @@ -132,7 +132,7 @@ run_test() echo -n "PROFILE NAME:" ./bacrp $1 8 $1 168 fi - echo " " + echo -e " \r" } while [ $# -gt 0 ] ; do