#192 closed defect (fixed)
change sed commands in book
| Reported by: | Owned by: | ||
|---|---|---|---|
| Priority: | highest | Milestone: | |
| Component: | Book | Version: | CVS |
| Severity: | normal | Keywords: | |
| Cc: |
Description
example with util-linux.
current: cp hwclock/hwclock.c hwclock/hwclock.c.backup && sed 's%etc/adjtime%var/lib/hwclock/adjtime%' \
hwclock/hwclock.c > tmp~ &&
mv tmp~ hwclock/hwclock.c &&
Proposed change: cp hwclock/hwclock.c hwclock/hwclock.c.backup && sed 's%etc/adjtime%var/lib/hwclock/adjtime%' \
hwclock/hwclock.c.backup > hwclock/hwclock.c
Change History (3)
comment:1 by , 24 years ago
| Priority: | normal → highest |
|---|
comment:2 by , 24 years ago
| Owner: | changed from to |
|---|---|
| Status: | new → assigned |
comment:3 by , 24 years ago
| Resolution: | → fixed |
|---|---|
| Status: | assigned → closed |
All files have been changed, vims sed command has been adapted to the commonly used form used by the book (first, create ${file}.backup, and run the sed on that file to overwrite ${file}).

List of files that need to be changed:
LFS/BOOK/chapter5/fileutils-inst.xml LFS/BOOK/chapter5/fileutils-exp.xml LFS/BOOK/chapter6/glibc-inst.xml LFS/BOOK/chapter6/glibc-exp.xml LFS/BOOK/chapter6/vim-inst.xml LFS/BOOK/chapter6/shadowpwd-inst.xml LFS/BOOK/chapter6/shadowpwd-exp.xml LFS/BOOK/chapter6/sysvinit-inst.xml LFS/BOOK/chapter6/utillinux-inst.xml
Some packages (file, ed) have already been fixed.. :? I hope I've found all files with erroneous seds in them, if you find any more, please report them.