From owner-cvs-all Wed Mar 27 17:28:22 2002 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 7F40937B404; Wed, 27 Mar 2002 17:28:15 -0800 (PST) Received: (from joe@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g2S1SFr92606; Wed, 27 Mar 2002 17:28:15 -0800 (PST) (envelope-from joe) Message-Id: <200203280128.g2S1SFr92606@freefall.freebsd.org> From: Josef Karthauser Date: Wed, 27 Mar 2002 17:28:15 -0800 (PST) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/bin/ls Makefile cmp.c extern.h ls.1 ls.c ls.h print.c util.c X-FreeBSD-CVS-Branch: RELENG_4 Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG joe 2002/03/27 17:28:15 PST Modified files: (Branch: RELENG_4) bin/ls Makefile cmp.c extern.h ls.1 ls.c ls.h print.c util.c Log: MFC: Sync with -current, bringing all the differences into line, apart from those that are -current specific. In particular: Revamp the colour support to allow for bold characters. Colours are now defined using the characters a-h and A-H for the bold variants. The old way using 0-7 for the colours still works, but prints a message asking the user to switch. Add a new flag, -h which when combined with the -l option causes file sizes to be displayed with unit suffixes; Byte, Kilobyte, Megabyte, Gigabyte, Terabyte and Petabyte in order to reduce the number of digits to three or less. K&R->C89 source code changes. Revision Changes Path 1.9.2.3 +5 -3 src/bin/ls/Makefile 1.9.2.1 +8 -16 src/bin/ls/cmp.c 1.7.2.4 +20 -18 src/bin/ls/extern.h 1.33.2.15 +41 -14 src/bin/ls/ls.1 1.32.2.5 +121 -94 src/bin/ls/ls.c 1.11.2.3 +8 -7 src/bin/ls/ls.h 1.19.2.5 +206 -121 src/bin/ls/print.c 1.20.2.4 +12 -17 src/bin/ls/util.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message