I have cut some lines of code out of a bash script I am trying to execute.

<snip>

T2="NONE"
T1=$_PAGESIZE
if [ "$T2" = "$T1" ]; then

<snip>

I ran this using the -x option at the start of the script for debugging and
it produced the following results.

+ T2=NONE
+ T1=NONE
+ '[' NONE = $'NONE\r' ']'

Will someone please help me understand why the "\r" was appended to the if
clause?  And how can I change this code to make this a valid compare.  If
needed, I will be happy to provide more information.

TIA

Doug



----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390

Reply via email to