From owner-svn-src-all@FreeBSD.ORG Sun Dec 5 22:16:52 2010 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 53D97106566C; Sun, 5 Dec 2010 22:16:52 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 42EE68FC08; Sun, 5 Dec 2010 22:16:52 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id oB5MGqqk010180; Sun, 5 Dec 2010 22:16:52 GMT (envelope-from dougb@svn.freebsd.org) Received: (from dougb@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id oB5MGqka010178; Sun, 5 Dec 2010 22:16:52 GMT (envelope-from dougb@svn.freebsd.org) Message-Id: <201012052216.oB5MGqka010178@svn.freebsd.org> From: Doug Barton Date: Sun, 5 Dec 2010 22:16:52 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r216213 - head/usr.bin/stat X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 05 Dec 2010 22:16:52 -0000 Author: dougb Date: Sun Dec 5 22:16:51 2010 New Revision: 216213 URL: http://svn.freebsd.org/changeset/base/216213 Log: Bring in the changes from NetBSD 1.13 that we did not already have, with some differences. "Sort options. Use more mdoc macros. Some nit fixes. Bump date." Obtained from: wiz@NetBSD.org Modified: head/usr.bin/stat/stat.1 Modified: head/usr.bin/stat/stat.1 ============================================================================== --- head/usr.bin/stat/stat.1 Sun Dec 5 22:12:07 2010 (r216212) +++ head/usr.bin/stat/stat.1 Sun Dec 5 22:16:51 2010 (r216213) @@ -50,7 +50,7 @@ The .Nm utility displays information about the file pointed to by .Ar file . -Read, write or execute permissions of the named file are not required, but +Read, write, or execute permissions of the named file are not required, but all directories listed in the path name leading to the file must be searchable. If no argument is given, @@ -122,6 +122,10 @@ If the link is broken or the target does fall back on .Xr lstat 2 and report information about the link. +.It Fl l +Display output in +.Ic ls Fl lT +format. .It Fl n Do not force a newline to appear at the end of each piece of output. .It Fl q @@ -151,7 +155,8 @@ display the raw, numerical value (for ex epoch, etc.). .It Fl s Display information in -.Dq "shell output" , +.Dq shell output +format, suitable for initializing variables. .It Fl x Display information in a more verbose way as known from some @@ -438,7 +443,7 @@ which default to .Sh EXIT STATUS .Ex -std stat readlink .Sh EXAMPLES -If no options are specified, default format is +If no options are specified, the default format is "%d %i %Sp %l %Su %Sg %r %z \\"%Sa\\" \\"%Sm\\" \\"%Sc\\" \\"%SB\\" %k %b %#Xf %N". .Bd -literal -offset indent \*[Gt] stat /tmp/bar @@ -446,7 +451,7 @@ If no options are specified, default for .Ed .Pp Given a symbolic link -.Pa foo +.Dq foo that points from .Pa /tmp/foo to