Bug 65042

Summary: carriage returns added to lines in %post
Product: [Retired] Red Hat Linux Reporter: Mike McLean <mikem>
Component: anacondaAssignee: Michael Fulbright <msf>
Status: CLOSED NOTABUG QA Contact: Brock Organ <borgan>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.1   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2002-05-16 18:37:39 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Mike McLean 2002-05-16 16:23:45 UTC
* Red Hat 7.1
* kickstart install

Somewhere along the way, carriage returns are being added to the end of each
line in %post.  Since "\r" is not treated as a whitespace character by the
shell, this can lead to some really strange results and error messages. 

For example the line
pwd &> pwd_test
will create a file "pwd_test\r"

You can get around this problem if you are aware of it.  For one line commands,
you can append " ; echo foo" to them or some such.

Comment 1 Mike McLean 2002-05-16 18:37:34 UTC
ack. nevermind. "Somewhere along the way" was in the ks file itself.  I pulled
the kickstart file from an email and modified it. Of course my editor silently
went into dos mode and preserved the CRs without showing them to me.

Let this be a warning to others: kickstart files and carriage returns do not mix!