Opened 23 years ago

Closed 23 years ago

Last modified 23 years ago

#77 closed defect (fixed)

Command explanations inconsistent to actual commands

Reported by: niemann@… Owned by: lfs-book@…
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?

Change History (1)

comment:1 by gerard@…, 23 years ago

Resolution: fixed
Status: newclosed

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.

Note: See TracTickets for help on using tickets.