The Unix Heritage Society mailing list
 help / color / mirror / Atom feed
* [TUHS] Bourne shell and comments
@ 2017-04-19 19:18 Doug McIlroy
  0 siblings, 0 replies; 38+ messages in thread
From: Doug McIlroy @ 2017-04-19 19:18 UTC (permalink / raw)


> Is this a reason why "#" was chosen as the root prompt, by the way?

No. # was adopted as superuser prompt  before the shell had a
comment convention.

Doug


^ permalink raw reply	[flat|nested] 38+ messages in thread
* [TUHS] Bourne shell and comments
@ 2017-04-21 17:03 Doug McIlroy
  2017-04-21 18:15 ` Clem Cole
  0 siblings, 1 reply; 38+ messages in thread
From: Doug McIlroy @ 2017-04-21 17:03 UTC (permalink / raw)


"Shebang". Nice coinage (which I somehow hadn't heard before).
Very much  in tune with Bell Labs, where Vic Vyssotsky had instilled
"sharp" as the name of # -- not "number", not "pound", and definitely
not "hash" -- so shell scripts began with sharp-bang.

Doug


^ permalink raw reply	[flat|nested] 38+ messages in thread
* [TUHS] Bourne shell and comments
@ 2017-04-18 20:48 Warren Toomey
  2017-04-18 20:51 ` Ron Natalie
                   ` (2 more replies)
  0 siblings, 3 replies; 38+ messages in thread
From: Warren Toomey @ 2017-04-18 20:48 UTC (permalink / raw)


I was trying to configure C news on 2.9BSD today and I found that its
Bourne shell doesn't grok # comments. The Bourne shell in 2.11BSD does.

So I thought: when did the Bourne (and other) shells first grok # as
indicating a comment? Was this in response to #! being added to the
kernel, or was it the other way around? And was the choice of #!
arbitrary, or was it borrowed from somewhere else?

Datum point: 2.9BSD's kernel can recognise #!, but the sh can't recognise #.

Cheers, Warren


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

end of thread, other threads:[~2017-04-22  2:46 UTC | newest]

Thread overview: 38+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-19 19:18 [TUHS] Bourne shell and comments Doug McIlroy
  -- strict thread matches above, loose matches on Subject: below --
2017-04-21 17:03 Doug McIlroy
2017-04-21 18:15 ` Clem Cole
2017-04-21 19:13   ` Steve Johnson
2017-04-18 20:48 Warren Toomey
2017-04-18 20:51 ` Ron Natalie
2017-04-18 21:45   ` Grant Taylor
2017-04-18 22:16     ` Ron Natalie
2017-04-18 22:40       ` Toby Thain
2017-04-19 18:36     ` Stephen Kitt
2017-04-19 20:35       ` Arthur Krewat
2017-04-19  0:50   ` Lyndon Nerenberg
2017-04-19  8:35     ` Andreas Kusalananda Kähäri
2017-04-19 16:31     ` Grant Taylor
2017-04-19 16:59       ` Andreas Kusalananda Kähäri
2017-04-19 17:36       ` Bakul Shah
2017-04-19 17:59         ` Grant Taylor
2017-04-20 20:13   ` Clem Cole
2017-04-20 20:17     ` Chet Ramey
2017-04-21  3:28     ` arnold
2017-04-21  3:43       ` Bakul Shah
2017-04-21  6:07         ` Steve Nickolas
2017-04-21 11:18       ` Clem cole
2017-04-21 13:20       ` Michael Kjörling
2017-04-18 20:56 ` Chet Ramey
2017-04-19 21:02 ` Sven Mascheck
2017-04-19 22:07   ` Steffen Nurpmeso
2017-04-20  0:31     ` shawn wilson
2017-04-20  0:35       ` shawn wilson
2017-04-20  3:50         ` Andy Kosela
2017-04-20  4:47           ` Warner Losh
2017-04-21  1:42             ` Nemo
2017-04-21 10:54               ` Ron Natalie
2017-04-21 14:22                 ` Andy Kosela
2017-04-21 14:45                   ` Ron Natalie
2017-04-22  2:46           ` Dave Horsfall
2017-04-20 16:39     ` Sven Mascheck
2017-04-20 21:42       ` Steffen Nurpmeso

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).