> On Feb 23, 2017, at 04:34, Ree, Jan-Albert van <[email protected]> wrote:
> 
> Thanks for the hint, it turned out to be something even more stupid...
> In one of the post scripts I install a load of RPM's in one go. After one of 
> the line breaks I had a space character which apparently messes things up.

Specifically what it messes up is the line ends early. The “\” that you 
typically see at the end of a line (for example)

yum install foo \
                  bar \
                  baz \
                  foobar

is escaping the newline character “\n”.  So the above is actually doing this:

yum install foo \\n
                  bar \\n
                  baz \\n
                  foobar

which results in:

yum install foo bar baz foobar

If you don’t put the \ right next to the \n, it isn’t escaping the \n anymore 
and the \n is read, ending the command prematurely:

yum install foo \\n
                  bar \ \n   <— extra space
                  baz \\n
                  foobar

which results in:

yum install foo bar
baz foobar


—
David Rock
[email protected]




Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail

_______________________________________________
Spacewalk-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/spacewalk-list

Reply via email to