From mboxrd@z Thu Jan 1 00:00:00 1970 From: wkt@tuhs.org (Warren Toomey) Date: Wed, 19 Apr 2017 06:48:34 +1000 Subject: [TUHS] Bourne shell and comments Message-ID: <20170418204834.GA22198@minnie.tuhs.org> 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