Bug 43995 - ls -B isn't complete
Summary: ls -B isn't complete
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: 4.7-RELEASE
Hardware: Any Any
: Normal Affects Only Me
Assignee: Tim Robbins
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-10-13 05:10 UTC by David Muir Sharnoff
Modified: 2002-11-17 10:31 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Muir Sharnoff 2002-10-13 05:10:00 UTC
	The ls(1) man page describes the -B option:

     -B      Force printing of non-printable characters (as defined by
	     ctype(3) and current locale settings) in file names as \xxx,
	     where xxx is the numeric value of the character in octal.

	When you do a recursive listing (ls -R) ls will print out the
	directory name followed by a colon.  Eg:

	/usr/bin:
	total 28322

	etc.

	If there are non-printable characters in the directory name,
	they are printed rather than escaped.

How-To-Repeat: 	

	% mkdir /tmp/foo
	% cd /tmp/foo
	% mkdir ' ibebad:\
	ha ha'
	% ls -BoTnilR
Comment 1 David Muir Sharnoff 2002-10-13 05:24:03 UTC
I would like to note that Linux's ls has a -b flag that is
analogous to FreeBSD ls's -B.  The Linux version is not broken.

This leads to a query: why are the Linux & FreeBSD ls programs
so different?  For reference, I was looking at Debian with a
2.4.19 kernel.
Comment 2 Tim Robbins freebsd_committer freebsd_triage 2002-10-18 12:00:11 UTC
State Changed
From-To: open->patched

Now fixed in -CURRENT, change will be MFC'd in one month. 


Comment 3 Tim Robbins freebsd_committer freebsd_triage 2002-10-18 12:00:11 UTC
Responsible Changed
From-To: freebsd-bugs->tjr

Now fixed in -CURRENT, change will be MFC'd in one month.
Comment 4 Tim Robbins freebsd_committer freebsd_triage 2002-11-17 10:30:37 UTC
State Changed
From-To: patched->closed

Change has been MFC'd.