It's not that \r was appended to the if clause, it is that the value of the _PAGESIZE variable is: 'NONE\r'
as opposed to this: NONE\r How that variable gets that value assigned to it is unknown, since you don't show that section of the code. Mark Post -----Original Message----- From: Linux on 390 Port [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Thursday, July 15, 2004 12:59 PM To: [EMAIL PROTECTED] Subject: Bash script question 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 ---------------------------------------------------------------------- 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