The Unix Heritage Society mailing list
 help / color / mirror / Atom feed
* [TUHS] V7 ls and dot files?
@ 2025-04-27 13:51 Aharon Robbins
  2025-04-27 14:20 ` [TUHS] " Roberto E. Vargas Caballero
  0 siblings, 1 reply; 12+ messages in thread
From: Aharon Robbins @ 2025-04-27 13:51 UTC (permalink / raw)
  To: tuhs

Hi All.

The V7 ls.c ignores `.' and `..', unless given the -a option.

The V1 - V6 ls ignores all files that start with `.', unless given -a,
and this is the default for all modern versions of ls.

BWK tells me there's a story about the V7 behavior but he doesn't
remember what it is.  Does anyone here know?

Thanks,

Arnold

^ permalink raw reply	[flat|nested] 12+ messages in thread

* [TUHS] Re: V7 ls and dot files?
  2025-04-27 13:51 [TUHS] V7 ls and dot files? Aharon Robbins
@ 2025-04-27 14:20 ` Roberto E. Vargas Caballero
  2025-04-28  7:36   ` arnold
  0 siblings, 1 reply; 12+ messages in thread
From: Roberto E. Vargas Caballero @ 2025-04-27 14:20 UTC (permalink / raw)
  To: Aharon Robbins; +Cc: tuhs

Hi,

On Sun, Apr 27, 2025 at 04:51:08PM +0300, Aharon Robbins wrote:
> Hi All.
> 
> The V7 ls.c ignores `.' and `..', unless given the -a option.
> 
> The V1 - V6 ls ignores all files that start with `.', unless given -a,
> and this is the default for all modern versions of ls.
> 
> BWK tells me there's a story about the V7 behavior but he doesn't
> remember what it is.  Does anyone here know?

I suppose this is related to [1]. I suppose Rob can give more details
as he wrote the original post.

[1] http://xahlee.info/UnixResource_dir/writ/unix_origin_of_dot_filename.html

Regards,

^ permalink raw reply	[flat|nested] 12+ messages in thread

* [TUHS] Re: V7 ls and dot files?
  2025-04-27 14:20 ` [TUHS] " Roberto E. Vargas Caballero
@ 2025-04-28  7:36   ` arnold
  0 siblings, 0 replies; 12+ messages in thread
From: arnold @ 2025-04-28  7:36 UTC (permalink / raw)
  To: k0ga, arnold; +Cc: tuhs

"Roberto E. Vargas Caballero" <k0ga@shike2.net> wrote:

> Hi,
>
> On Sun, Apr 27, 2025 at 04:51:08PM +0300, Aharon Robbins wrote:
> > Hi All.
> > 
> > The V7 ls.c ignores `.' and `..', unless given the -a option.
> > 
> > The V1 - V6 ls ignores all files that start with `.', unless given -a,
> > and this is the default for all modern versions of ls.
> > 
> > BWK tells me there's a story about the V7 behavior but he doesn't
> > remember what it is.  Does anyone here know?
>
> I suppose this is related to [1]. I suppose Rob can give more details
> as he wrote the original post.
>
> [1] http://xahlee.info/UnixResource_dir/writ/unix_origin_of_dot_filename.html
>
> Regards,

That's an interesting article, and the point is valid, but it
doesn't answer the orignal question.

Thanks,

Arnold

^ permalink raw reply	[flat|nested] 12+ messages in thread

* [TUHS] Re: V7 ls and dot files?
  2025-04-29 11:28     ` Jaap Akkerhuis
  2025-04-29 18:52       ` Rik Farrow
@ 2025-04-30  7:09       ` arnold
  1 sibling, 0 replies; 12+ messages in thread
From: arnold @ 2025-04-30  7:09 UTC (permalink / raw)
  To: jaapna, ggm; +Cc: tuhs

Jaap Akkerhuis <jaapna@xs4all.nl> wrote:

> I seem to remember that V7 was the first suystem which had a mkdir system call. That might have changed what ls -a showed.
>
> 	jaap
>

Thanks. IIRC it was 4.2 BSD. V8 may have picked it up.

Arnold

^ permalink raw reply	[flat|nested] 12+ messages in thread

* [TUHS] Re: V7 ls and dot files?
  2025-04-29 19:18         ` Jaap Akkerhuis via TUHS
@ 2025-04-29 19:33           ` segaloco via TUHS
  0 siblings, 0 replies; 12+ messages in thread
From: segaloco via TUHS @ 2025-04-29 19:33 UTC (permalink / raw)
  To: TUHS main list

On Tuesday, April 29th, 2025 at 12:19 PM, Jaap Akkerhuis via TUHS <tuhs@tuhs.org> wrote:

> 
> 
> 
> > On 2025 Apr 29, at 20:52, Rik Farrow <rik@rikfarrow.com> wrote:
> > 
> > I thought so too, but found this reference to a Version 1 mkdir:
> > https://man.cat-v.org/unix-1st/1/mkdir
> 
> 
> That is the command in man(1) and always existed. System calls documentation live in man(2).
> 
> jaap
> 
> 
> > 
> > I recall reading a Version 6 or 7 man page about mkfs that included the ability to populate a file system with some directories, and I thought that implied that users couldn't create directories. The man page referenced above hints that mkdir is run as the 'system user', presumably root, and becomes the owner of new directories.
> > 
> > Rik
> > 
> > 
> > On Tue, Apr 29, 2025 at 4:28 AM Jaap Akkerhuis <jaapna@xs4all.nl> wrote:
> > 
> > > I seem to remember that V7 was the first suystem which had a mkdir system call. That might have changed what ls -a showed.
> > > 
> > >         jaap

What I see in the history is:

V1 - mkdir(1) and mkdir(2) are both present, mkdir(1) indicates that:

> The standard entries "." and ".." are made automatically.

and this text persists through to V6 at least.

Whereas mkdir(2) states:

> The special entries "." and ".." are not present.

With V2, mkdir(2) is renamed makdir(2) but still retains this text.  In V4, this is replaced with mknod(2) which drops this text.  So for the purposes of . and .. the situation should be unchanged from V1 to V3, with V4 switching to mknod(2).  This is all from my mandiff project which is paused at V6 until a few more manuals from the time (namely USG PG-III and PWB/2.0) manage to crop up.  Comparing between V6 and V7 should lend more clarity to the situation.

- Matt G.

^ permalink raw reply	[flat|nested] 12+ messages in thread

* [TUHS] Re: V7 ls and dot files?
  2025-04-29 18:52       ` Rik Farrow
  2025-04-29 19:18         ` Jaap Akkerhuis via TUHS
@ 2025-04-29 19:27         ` Dan Cross
  1 sibling, 0 replies; 12+ messages in thread
From: Dan Cross @ 2025-04-29 19:27 UTC (permalink / raw)
  To: Rik Farrow; +Cc: TUHS main list

On Tue, Apr 29, 2025 at 3:01 PM Rik Farrow <rik@rikfarrow.com> wrote:
> I thought so too, but found this reference to a Version 1 mkdir:
>
> https://man.cat-v.org/unix-1st/1/mkdir
>
> I recall reading a Version 6 or 7 man page about mkfs that included the ability to populate a file system with some directories, and I thought that implied that users couldn't create directories. The man page referenced above hints that mkdir is run as the 'system user', presumably root, and becomes the owner of new directories.

That's the man page for the `mkdir` command, but I think the
distinction was for the system call. Before the introduction of
`mkdir(2)`, directories were created by `mknod(2)`, and that was true
through the 7th Edition and into 32/v.

I would have thought that `mkdir` came with FFS and indeed, it's not
in 3BSD or 4.0BSD; looks like it came with 4.1c.1, which is where UFS
starts to be integrated.

        - Dan C.

> On Tue, Apr 29, 2025 at 4:28 AM Jaap Akkerhuis <jaapna@xs4all.nl> wrote:
>>
>> I seem to remember that V7 was the first suystem which had a mkdir system call. That might have changed what ls -a showed.
>>
>>         jaap
>>

^ permalink raw reply	[flat|nested] 12+ messages in thread

* [TUHS] Re: V7 ls and dot files?
  2025-04-29 18:52       ` Rik Farrow
@ 2025-04-29 19:18         ` Jaap Akkerhuis via TUHS
  2025-04-29 19:33           ` segaloco via TUHS
  2025-04-29 19:27         ` Dan Cross
  1 sibling, 1 reply; 12+ messages in thread
From: Jaap Akkerhuis via TUHS @ 2025-04-29 19:18 UTC (permalink / raw)
  To: Rik Farrow; +Cc: TUHS main list

[-- Attachment #1: Type: text/plain, Size: 913 bytes --]



> On 2025 Apr 29, at 20:52, Rik Farrow <rik@rikfarrow.com> wrote:
> 
> I thought so too, but found this reference to a Version 1 mkdir:
> 
> https://man.cat-v.org/unix-1st/1/mkdir

That is the command in man(1) and always existed. System calls documentation live in man(2).

	jaap

> 
> I recall reading a Version 6 or 7 man page about mkfs that included the ability to populate a file system with some directories, and I thought that implied that users couldn't create directories. The man page referenced above hints that mkdir is run as the 'system user', presumably root, and becomes the owner of new directories.
> 
> Rik
> 
> 
> On Tue, Apr 29, 2025 at 4:28 AM Jaap Akkerhuis <jaapna@xs4all.nl <mailto:jaapna@xs4all.nl>> wrote:
>> I seem to remember that V7 was the first suystem which had a mkdir system call. That might have changed what ls -a showed.
>> 
>>         jaap
>> 


[-- Attachment #2: Type: text/html, Size: 1839 bytes --]

^ permalink raw reply	[flat|nested] 12+ messages in thread

* [TUHS] Re: V7 ls and dot files?
  2025-04-29 11:28     ` Jaap Akkerhuis
@ 2025-04-29 18:52       ` Rik Farrow
  2025-04-29 19:18         ` Jaap Akkerhuis via TUHS
  2025-04-29 19:27         ` Dan Cross
  2025-04-30  7:09       ` arnold
  1 sibling, 2 replies; 12+ messages in thread
From: Rik Farrow @ 2025-04-29 18:52 UTC (permalink / raw)
  To: Jaap Akkerhuis; +Cc: TUHS main list

[-- Attachment #1: Type: text/plain, Size: 689 bytes --]

I thought so too, but found this reference to a Version 1 mkdir:

https://man.cat-v.org/unix-1st/1/mkdir

I recall reading a Version 6 or 7 man page about mkfs that included the
ability to populate a file system with some directories, and I thought that
implied that users couldn't create directories. The man page referenced
above hints that mkdir is run as the 'system user', presumably root, and
becomes the owner of new directories.

Rik


On Tue, Apr 29, 2025 at 4:28 AM Jaap Akkerhuis <jaapna@xs4all.nl> wrote:

> I seem to remember that V7 was the first suystem which had a mkdir system
> call. That might have changed what ls -a showed.
>
>         jaap
>
>

[-- Attachment #2: Type: text/html, Size: 1131 bytes --]

^ permalink raw reply	[flat|nested] 12+ messages in thread

* [TUHS] Re: V7 ls and dot files?
  2025-04-29  3:17   ` George Michaelson
@ 2025-04-29 11:28     ` Jaap Akkerhuis
  2025-04-29 18:52       ` Rik Farrow
  2025-04-30  7:09       ` arnold
  0 siblings, 2 replies; 12+ messages in thread
From: Jaap Akkerhuis @ 2025-04-29 11:28 UTC (permalink / raw)
  To: George Michaelson; +Cc: TUHS main list

I seem to remember that V7 was the first suystem which had a mkdir system call. That might have changed what ls -a showed.

	jaap


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [TUHS] Re: V7 ls and dot files?
  2025-04-29  1:21 ` Rob Pike
@ 2025-04-29  3:17   ` George Michaelson
  2025-04-29 11:28     ` Jaap Akkerhuis
  0 siblings, 1 reply; 12+ messages in thread
From: George Michaelson @ 2025-04-29  3:17 UTC (permalink / raw)
  To: TUHS main list

[-- Attachment #1: Type: text/plain, Size: 1783 bytes --]

Aside from punched card stuff. I started life in TOPS-10. 78 vintage, not
very heavily modified locally as I recall. (people did run local mods, I
don't think we'd applied any)

I had forgotten TOPS-10 had a logical equivalent of a mount point, the MFD.
And I had forgotten inside the [xxx,yyy] group/user identity directory, you
could nest 5 sub-directories deep.

5! such humongous nesting! who could need more than 5 levels deep!

What I did remember is there was no evident ".." equivalent in the commands
to "be" in a directory. The idea of needing to go back to your parent,
positionally inside a subdirectory but without recourse to the actual path
down from the MFD appeared to be missing. I suspect whoever designed this
was living their best life in JCL and saw no interaction on paths as
needing "optimisations" = SET DIRECTORY obviously demanded a path down from
an MFD. Fool of a took!

By the time of VMS, you had the same $MFD:[path.path.path...] structure but
now up to 255 nesting levels deep, and the "-" nonce directory meant "the
parent to the one you are talking about" so at least in hypothesis a "cd
.." command was possible without needing to know the descent path. 255!
magic numbers! Who could need so many nesting levels?

When I got the great uplift to Unix in 82 and realized . and .. existed, It
was a very strong mind-officially-blown moment. Its like the zen koan for
the ages: Who the hell thought it was ok to design a filesystem ANY OTHER
WAY.  I simply cannot handle that I was using some system (Norsk Data?)
around the same time and it didn't have cd .. -It still had a TOPS-10 class
view of the world as a descent tree only. Stone Age!

I still regret that the newcastle connections ... naming model didn't get
up. I think it was very nice.

G

[-- Attachment #2: Type: text/html, Size: 2054 bytes --]

^ permalink raw reply	[flat|nested] 12+ messages in thread

* [TUHS] Re: V7 ls and dot files?
  2025-04-28 11:36 Douglas McIlroy
@ 2025-04-29  1:21 ` Rob Pike
  2025-04-29  3:17   ` George Michaelson
  0 siblings, 1 reply; 12+ messages in thread
From: Rob Pike @ 2025-04-29  1:21 UTC (permalink / raw)
  To: Douglas McIlroy; +Cc: TUHS main list

[-- Attachment #1: Type: text/plain, Size: 540 bytes --]

So now I see that v1 had hierarchical path names. I thought that came in
v2. I stand corrected.

-rob


On Mon, Apr 28, 2025 at 9:36 PM Douglas McIlroy <
douglas.mcilroy@dartmouth.edu> wrote:

> http://xahlee.info/UnixResource_dir/writ/unix_origin_of_dot_filename.html
> says
>
> > I'm not sure but I believe .. went in during the Version 2 rewrite
>
> .. was there from the beginning. The v1 man page directory(v) says,
>
> > By convention, the first two entries in each directory are for "." and
> "..".
>
> Doug
>

[-- Attachment #2: Type: text/html, Size: 1290 bytes --]

^ permalink raw reply	[flat|nested] 12+ messages in thread

* [TUHS] Re: V7 ls and dot files?
@ 2025-04-28 11:36 Douglas McIlroy
  2025-04-29  1:21 ` Rob Pike
  0 siblings, 1 reply; 12+ messages in thread
From: Douglas McIlroy @ 2025-04-28 11:36 UTC (permalink / raw)
  To: TUHS main list

http://xahlee.info/UnixResource_dir/writ/unix_origin_of_dot_filename.html says

> I'm not sure but I believe .. went in during the Version 2 rewrite

.. was there from the beginning. The v1 man page directory(v) says,

> By convention, the first two entries in each directory are for "." and "..".

Doug

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2025-04-30  7:09 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-04-27 13:51 [TUHS] V7 ls and dot files? Aharon Robbins
2025-04-27 14:20 ` [TUHS] " Roberto E. Vargas Caballero
2025-04-28  7:36   ` arnold
2025-04-28 11:36 Douglas McIlroy
2025-04-29  1:21 ` Rob Pike
2025-04-29  3:17   ` George Michaelson
2025-04-29 11:28     ` Jaap Akkerhuis
2025-04-29 18:52       ` Rik Farrow
2025-04-29 19:18         ` Jaap Akkerhuis via TUHS
2025-04-29 19:33           ` segaloco via TUHS
2025-04-29 19:27         ` Dan Cross
2025-04-30  7:09       ` arnold

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).