Date: Fri, 14 Jun 2019 21:43:46 +0000
From: Austin Group Bug Tracker <[email protected]>
Message-ID: <[email protected]>
| Is missing the "a:" header.
Versions of ls I use don't include that header when there was
just one (or no, but that is just implicitly specifying "." as
the arg) arg given:
jinx$ ls -laRF /tmp | sed 10q
total 258
drwxrwxrwt 14 root wheel 8448 Jun 15 06:19 ./
drwxr-xr-x 26 root wheel 1024 Jan 15 11:10 ../
-r--r--r-- 1 root wheel 11 May 19 17:32 .X0-lock
drwxrwxrwt 2 root wheel 48 May 19 17:32 .X11-unix/
drwxr-xr-x 2 kre wheel 0 May 19 17:32 .webtkcache/
drwxr-xr-x 2 kre wheel 576 May 25 11:19 C2/
drwxr-xr-x 2 kre wheel 4032 May 24 13:35 CC/
-rw-r--r-- 1 kre wheel 271 Jun 14 08:32 F
drwxr-xr-x 2 kre wheel 336 May 24 13:56 IJ/
jinx$ ls -laRF /tmp /tmp | sed 10q
/tmp:
total 258
drwxrwxrwt 14 root wheel 8448 Jun 15 06:19 ./
drwxr-xr-x 26 root wheel 1024 Jan 15 11:10 ../
-r--r--r-- 1 root wheel 11 May 19 17:32 .X0-lock
drwxrwxrwt 2 root wheel 48 May 19 17:32 .X11-unix/
drwxr-xr-x 2 kre wheel 0 May 19 17:32 .webtkcache/
drwxr-xr-x 2 kre wheel 576 May 25 11:19 C2/
drwxr-xr-x 2 kre wheel 4032 May 24 13:35 CC/
-rw-r--r-- 1 kre wheel 271 Jun 14 08:32 F
What the text says is (lines 96861-3) is:
If more than one directory, or a combination of non-directory files and
directories are written, either as a result of specifying multiple operands,
or the -R option, each list of files within a directory shall be preceded by:
"\n%s:\n", <directory name>
That isn't all that clear as to what it intended when one directory
operand is given, together with -R (which then finds sub-directories),
but the presence of that leading \n in the format suggests to me that
this was not intended to occur as the first output line (also when multiple
operands are listed, and all are directories, that \n does not appear
in the first such header).
kre