Documentation DIR /B /S /:

#1
The help says
Code:
When /: is used in conjunction with /B (Bare), the file name is displayed on the first line, then any streams, indented two spaces, on subsequent lines:
When /S is added, the behavior is different and undocumented (actually it's the documented "/F /:" behavior).
Code:
l:\projects\4sysutils\release> dir /b /: g:\Windump\w*
WinDump.exe
  Zone.Identifier:$DATA
 
l:\projects\4sysutils\release> dir /b /s /: g:\Windump\w*
G:\Windump\WinDump.exe
G:\Windump\WinDump.exe:Zone.Identifier
 
#2
The help says
Code:
When /: is used in conjunction with /B (Bare), the file name is displayed on the first line, then any streams, indented two spaces, on subsequent lines:
When /S is added, the behavior is different and undocumented (actually it's the documented "/F /:" behavior).
Code:
l:\projects\4sysutils\release> dir /b /: g:\Windump\w*
WinDump.exe
  Zone.Identifier:$DATA
 
l:\projects\4sysutils\release> dir /b /s /: g:\Windump\w*
G:\Windump\WinDump.exe
G:\Windump\WinDump.exe:Zone.Identifier
That's the normal behavior of DIR /B /S; /: has nothing to do with it. When you add /S, /B behaves like /F. Otherwise you'd have no way of knowing which subdirectory a particular file was in. It's worked that way since the early days of 4DOS.

-- Howard
 
#3
That's the normal behavior of DIR /B /S; /: has nothing to do with it. When you add /S, /B behaves like /F. Otherwise you'd have no way of knowing which subdirectory a particular file was in. It's worked that way since the early days of 4DOS.

-- Howard
A newbie might not glean that from the help. In addition, the help says, without qualification,
Code:
When /: is used in conjunction with /B (Bare), the file name is displayed on the first line,
then any streams, indented two spaces, on subsequent lines:
One might easily think "/:" does have something to do with it. The next paragraph could use a very small addition:
Code:
When /: is used in conjunction with /F (Full path) [B](which implied by /B /S)[/B], the file name is displayed
on the first line, then any streams are appended to the filename on subsequent lines: