The Unix Heritage Society mailing list
 help / color / mirror / Atom feed
From: reed@reedmedia.net (Jeremy C. Reed)
Subject: [TUHS] History of #! interpretation in Unix
Date: Mon, 17 Jan 2011 16:41:39 -0600 (CST)	[thread overview]
Message-ID: <alpine.NEB.2.01.1101171616540.22444@t1.m.reedmedia.net> (raw)
In-Reply-To: <20110117205128.GI2461@mercury.ccil.org>

On Mon, 17 Jan 2011, John Cowan wrote:

> > This seems to indicate the idea was not developed separately at 
> > Berkeley.
> 
> Thanks for doing the digging.  What this shows is that dmr came up with
> the idea of putting shebang processing into the kernel, but it does not
> show where shebangs as a shell feature came from.  I still think that
> has to be the CSRG.

As a similar feature, Joy's experimental "ashell" in the first BSD had a 
feature to run Pascal objects (started with the magic 0404 octal word) 
with the px interpreter. In 2BSD (and then 3BSD), his new csh had the 
OTHERSH feature -- if it started with # it would use csh; if the script 
did not begin with the # it would use /bin/sh.

I still don't see the same #! feature, but the above appear they may be 
inspiration. Also the 1BSD and 2BSD predate CSRG.

> > It was introduced into BSD by April 1981. For 2BSD (2.8) it was added by 
> > Dec. 16, 1981 when built with MENLO_SCRIPT defined (but I don't see that 
> > documented or defined).
> 
> Thanks again for clarifying the ordering here: I had assumed that 2.8
> was older than 4.0.




  reply	other threads:[~2011-01-17 22:41 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-16  8:43 Warren Toomey
2011-01-16  9:55 ` John Cowan
2011-01-16 13:20   ` Sven Mascheck
2011-01-16 17:17     ` John Cowan
2011-01-16 19:19       ` Sven Mascheck
2011-01-16 20:17         ` John Cowan
2011-01-16 20:42           ` Larry McVoy
2011-01-16 21:08           ` Sven Mascheck
2011-01-16 21:37             ` John Cowan
2011-01-17 16:35               ` Warner Losh
2011-01-17 20:47                 ` John Cowan
2011-01-17 10:09           ` Tim Bradshaw
2011-01-16 10:53 ` Wilko Bulte
2011-01-17 16:25   ` Warner Losh
2011-01-17 19:02 ` Jeremy C. Reed
2011-01-17 20:51   ` John Cowan
2011-01-17 22:41     ` Jeremy C. Reed [this message]
2011-01-17 20:58   ` Sven Mascheck
2011-01-19  4:10   ` Cyrille Lefevre
2011-01-19 20:35     ` Sven Mascheck
2011-01-20  4:09       ` Cyrille Lefevre
2011-01-28 19:38   ` Jeremy C. Reed
2011-01-30 15:05     ` Sven Mascheck

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=alpine.NEB.2.01.1101171616540.22444@t1.m.reedmedia.net \
    --to=reed@reedmedia.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).