Opened 20 years ago

Closed 20 years ago

#898 closed defect (invalid)

error in sed command in ch6 util-linux

Reported by: ryan.oliver@… Owned by: lfs-book@…
Priority: highest Milestone:
Component: Book Version: TESTING
Severity: normal Keywords:
Cc:

Description

As per OP

Appears to be an extra "'" in the sed command for altering the CFLAGS so -fno-unit-at-a-time is specified.

Book states

sed -i -e 's%include ../MCONFIG%'\ '&\n\nCFLAGS:=$(CFLAGS) -fno-unit-at-a-time%' fdisk/Makefile

Should be

sed -i -e 's%include ../MCONFIG%\&\n\nCFLAGS:=$(CFLAGS) -fno-unit-at-a-time%' \ fdisk/Makefile

Bug report courtesy of BlackAura via IRC

Change History (1)

comment:1 by gerard@…, 20 years ago

Resolution: invalid
Status: newclosed

The command in the book is correct. The construction allows the sed statement to be split over multiple lines, as long as the \ on the first line is not preceeded by a space.

Copy-and-pasting from the book into the shell results in a properly modified fdisk/Makefile file.

I think the reporter (BlackAura) might not have typed the command out properly.

Note: See TracTickets for help on using tickets.