From mboxrd@z Thu Jan 1 00:00:00 1970 From: arnold@skeeve.com (arnold@skeeve.com) Date: Thu, 20 Apr 2017 21:28:06 -0600 Subject: [TUHS] Bourne shell and comments In-Reply-To: References: <20170418204834.GA22198@minnie.tuhs.org> <020a01d2b885$94bd49c0$be37dd40$@ronnatalie.com> Message-ID: <201704210328.v3L3S6MI010851@freefriends.org> Clem Cole wrote: > below... > > On Tue, Apr 18, 2017 at 4:51 PM, Ron Natalie wrote: > > > I believe the Berkeley #! magic number came first. > > That's right.... the #!path syntax was BSDism that went main stream > because of its usefulness with "little languages" not just the shell. > I'd have to check the tapes but it may have gone back as far as the > original BSD ~77/78 - Ken would have brought it back after his sabbatical > (or not - he would have seen it). I thought it was pretty well established that DMR invented it and told the UCB guys about it? There's an email in the archives from him, too. Dr. McIlroy? Can you clarify? > The # was nod to the # being the first characters of the C program to say > to use the preprocessor; but I've forgotten why the bang was added before > the path. It could have been almost anything. Perhaps reminiscent of the '!' escape to shell in ed and maybe some other interactive programs of the time? That's purely a guess on my part. My two cents, Arnold