Bug 27078

Summary: FreeBSD lacks nl
Product: Base System Reporter: Kevin Neal <Kevin.Neal>
Component: binAssignee: Brian Somers <brian>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Unspecified   
Hardware: Any   
OS: Any   

Description Kevin Neal 2001-05-04 15:00:01 UTC
        I think the nl program was one of the programs stripped out of the
        4.4BSD-lite distribution. Since then a new nl has been written and
        can be found in at least NetBSD.

Fix: 

Grab NetBSD's nl wholesale.
How-To-Repeat: 
        Use HP-UX and write shell scripts to aid in debugging a program.
        Use nl in said scripts. Then try to run the scripts on FreeBSD.
        Be disappointed.
Comment 1 Brian Somers freebsd_committer freebsd_triage 2001-05-04 16:55:17 UTC
State Changed
From-To: open->closed

#! /bin/sh 
exec cat -n "$@"
Comment 2 Brian Somers freebsd_committer freebsd_triage 2001-05-04 18:06:00 UTC
State Changed
From-To: closed->open

``cat -n'' is not even close to being a substitute for nl(1) 


Comment 3 Brian Somers freebsd_committer freebsd_triage 2001-05-04 18:06:00 UTC
Responsible Changed
From-To: freebsd-bugs->brian

I'll grab the NetBSD version - serves me right for thinking nl had no switches :-)
Comment 4 Brian Somers freebsd_committer freebsd_triage 2001-05-04 18:26:27 UTC
State Changed
From-To: open->closed

nl(1) is now in -current