Bug 65042 - carriage returns added to lines in %post
carriage returns added to lines in %post
Product: Red Hat Linux
Classification: Retired
Component: anaconda (Show other bugs)
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Michael Fulbright
Brock Organ
Depends On:
  Show dependency treegraph
Reported: 2002-05-16 12:23 EDT by Mike McLean
Modified: 2007-04-18 12:42 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2002-05-16 14:37:39 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Mike McLean 2002-05-16 12:23:45 EDT
* 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 14:37:34 EDT
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!

Note You need to log in before you can comment on or make changes to this bug.