#77 closed defect (fixed)
Command explanations inconsistent to actual commands
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | Book | Version: | 3.0-pre3 |
Severity: | trivial | Keywords: | |
Cc: |
Description
applies to 3.0-pre4 + cvs on 26-06-2001, can't say for 3.0-pre3 ;-) it says to execute: cp -a ../src/linux/include/linux . &&
and explains cp -R ../src/linux/include/linux .
BTW: Why have different commands for both copies anyway?
Note:
See TracTickets
for help on using tickets.
Fixed.
The reason for different commands is that /usr/src/linux/include/asm is a symlink. A cp -a will copy that symlink and not dereference it. We don't even want to dereference it because there may be symlinks inside include/asm that should remain as such. So instead of cp -a /usr/src/linux/include/asm we'll do cp -a /usr/src/linux/include/asm/* and in this construction the last argument to ls must be an existing directory, so that's why it's mkdir'ed before running cp.