Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#2647 closed defect (wontfix)

/bin/head should be moved to /usr/bin

Reported by: tito_puentes Owned by: lfs-book@…
Priority: normal Milestone: 6.7
Component: Book Version: SVN
Severity: normal Keywords: head sed
Cc:

Description

Patch replaces all instances of head -n# to sed #q.

One less binary in root.

Attachments (1)

BOOK-9258-no_head-0.1.patch (3.4 KB ) - added by tito_puentes 15 years ago.
use sed instead of head

Download all attachments as: .zip

Change History (5)

by tito_puentes, 15 years ago

Attachment: BOOK-9258-no_head-0.1.patch added

use sed instead of head

comment:1 by bdubbs@…, 15 years ago

Resolution: wontfix
Status: newclosed

As an administrator, I expect head to be available at the command line, even is /usr is not mounted.

comment:2 by DJ Lucas, 15 years ago

http://www.pathname.com/fhs/pub/fhs-2.3.html#BINESSENTIALUSERCOMMANDBINARIES

Bruce, you sure about that? I'd personally like to have both head and tail available if I couldn't mount /usr, but the FHS leaves it up to us. Do we go through any extra trouble in the book to put head in /bin? OTOH, there is nothing that says we cannot put it into /bin either. As the OP stated, it would be one less thing to move around, but I'd really like to finish the LSB style scripts at some point and provide Dan's initd-tools for LSB compliance. tito_puentes seems to be interested in the boot scripts, maybe he could put focus there, as I am still time constrained?

comment:3 by bdubbs@…, 15 years ago

Sure about what? That I'd like to have head and tail in /bin? Yes. Are they required by LHS, no. We do the move as the last instruction in coreutils. I'm thinking that we should add tail to that list for the administrator's convenience.

mv -v /usr/bin/{head,sleep,nice} /bin

Note: If you don't have /usr as a separate partition, all this discussion is moot.

in reply to:  3 comment:4 by DJ Lucas, 15 years ago

Replying to bdubbs@…:

Sure about what?

The snap closure. ;-) As for the rest I agree.

Note: See TracTickets for help on using tickets.