From muir@idiom.com  Sat Oct 12 21:01:41 2002
Return-Path: <muir@idiom.com>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id AF0A837B401
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 12 Oct 2002 21:01:41 -0700 (PDT)
Received: from idiom.com (idiom.com [216.240.32.1])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 6CE8843ED1
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 12 Oct 2002 21:01:41 -0700 (PDT)
	(envelope-from muir@idiom.com)
Received: from idiom.com (localhost [127.0.0.1])
	by idiom.com (8.12.5/8.12.6) with ESMTP id g9D41fEH007399
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 12 Oct 2002 21:01:41 -0700 (PDT)
	(envelope-from muir@idiom.com)
Received: (from muir@localhost)
	by idiom.com (8.12.5/8.12.6/Submit) id g9D41fHe007398;
	Sat, 12 Oct 2002 21:01:41 -0700 (PDT)
	(envelope-from muir)
Message-Id: <200210130401.g9D41fHe007398@idiom.com>
Date: Sat, 12 Oct 2002 21:01:41 -0700 (PDT)
From: David Muir Sharnoff <muir@idiom.com>
Reply-To: David Muir Sharnoff <muir@idiom.com>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: ls -B isn't complete
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         43995
>Category:       bin
>Synopsis:       ls -B isn't complete
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    tjr
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Oct 12 21:10:00 PDT 2002
>Closed-Date:    Sun Nov 17 02:31:10 PST 2002
>Last-Modified:  Sun Nov 17 02:31:10 PST 2002
>Originator:     David Muir Sharnoff
>Release:        FreeBSD 4.7-RELEASE i386
>Organization:
Idiom
>Environment:
System: FreeBSD idiom.com 4.7-RELEASE FreeBSD 4.7-RELEASE #8: Thu Oct 10 22:07:09 PDT 2002     muir@staid.idiom.com:/build/obj/build/src/sys/IDIOM  i386

	
>Description:

	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

>Fix:


>Release-Note:
>Audit-Trail:

From: David Muir Sharnoff <muir@idiom.com>
To: freebsd-gnats-submit@FreeBSD.org
Cc:  
Subject: Re: bin/43995: ls -B isn't complete
Date: Sat, 12 Oct 2002 21:24:03 -0700

 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.
State-Changed-From-To: open->patched 
State-Changed-By: tjr 
State-Changed-When: Fri Oct 18 04:00:11 PDT 2002 
State-Changed-Why:  
Now fixed in -CURRENT, change will be MFC'd in one month. 


Responsible-Changed-From-To: freebsd-bugs->tjr 
Responsible-Changed-By: tjr 
Responsible-Changed-When: Fri Oct 18 04:00:11 PDT 2002 
Responsible-Changed-Why:  
Now fixed in -CURRENT, change will be MFC'd in one month. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=43995 
State-Changed-From-To: patched->closed 
State-Changed-By: tjr 
State-Changed-When: Sun Nov 17 02:30:37 PST 2002 
State-Changed-Why:  
Change has been MFC'd. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=43995 
>Unformatted:
