Opened 20 years ago
Closed 20 years ago
#898 closed defect (invalid)
error in sed command in ch6 util-linux
Reported by: | Owned by: | ||
---|---|---|---|
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
Note:
See TracTickets
for help on using tickets.
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.