Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/stat Anothe difference in output format: stat -f "%Z...
details: https://anonhg.NetBSD.org/src/rev/ebfc2944e704
branches: trunk
changeset: 769617:ebfc2944e704
user: apb <apb%NetBSD.org@localhost>
date: Fri Sep 16 11:06:27 2011 +0000
description:
Anothe difference in output format: stat -f "%Z" does not add any
space in "major,minor" for device nodes, whereas both "ls -l" and
"find -ls" add at least one space.
diffstat:
usr.bin/stat/stat.1 | 19 ++++++++++++++-----
1 files changed, 14 insertions(+), 5 deletions(-)
diffs (54 lines):
diff -r a88dd0671568 -r ebfc2944e704 usr.bin/stat/stat.1
--- a/usr.bin/stat/stat.1 Fri Sep 16 11:05:42 2011 +0000
+++ b/usr.bin/stat/stat.1 Fri Sep 16 11:06:27 2011 +0000
@@ -1,4 +1,4 @@
-.\" $NetBSD: stat.1,v 1.30 2011/09/15 19:56:35 apb Exp $
+.\" $NetBSD: stat.1,v 1.31 2011/09/16 11:06:27 apb Exp $
.\"
.\" Copyright (c) 2002-2005 The NetBSD Foundation, Inc.
.\" All rights reserved.
@@ -27,7 +27,7 @@
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
.\" POSSIBILITY OF SUCH DAMAGE.
.\"
-.Dd September 15, 2011
+.Dd September 16, 2011
.Dt STAT 1
.Os
.Sh NAME
@@ -435,7 +435,7 @@
The target of a symbolic link.
.It Cm Z
Expands to
-.Dq major,minor
+.Dq Ar major Ns , Ns Ar minor
from the rdev field for character or block
special devices and gives size output for all others.
.El
@@ -477,7 +477,11 @@
.Ic find ... -ls
(except that
.Xr find 1
-displays the time in a different format):
+displays the time in a different format, and
+.Xr find 1
+adds at least one space after the comma in
+.Dq Ar major Ns , Ns Ar minor
+for device nodes):
.Bd -literal -offset indent
\*[Gt] stat -f "%7i %6b %-11Sp %3l %-17Su %-17Sg %9Z %Sm %N%SY" /tmp/bar
78852 0 -rw-r--r-- 1 root wheel 0 Jul 8 10:26:03 2004 /tmp/bar
@@ -490,7 +494,12 @@
.Ic ls -lTd
(except that
.Xr ls 1
-adjusts the column spacing differently when listing multiple files):
+adjusts the column spacing differently when listing multiple files,
+and
+.Xr ls 1
+adds at least one space after the comma in
+.Dq Ar major Ns , Ns Ar minor
+for device nodes):
.Bd -literal -offset indent
\*[Gt] stat -f "%-11Sp %l %Su %Sg %5Z %Sm %N%SY" /tmp/bar
-rw-r--r-- 1 root wheel 0 Jul 8 10:26:03 2004 /tmp/bar
Home |
Main Index |
Thread Index |
Old Index