[TUHS] sh: cmd | >file

Chet Ramey chet.ramey at case.edu
Mon Jan 6 01:16:44 AEST 2020


On 1/5/20 3:15 AM, Brantley Coile wrote:
> V7 indeed did not have "#" as a comment. Programs use the ":" command for that, and was careful of what was in the comment. The ":" command was called SYSNULL in the source. 
>     Later versions of Steve's shell had COMCHAR defined to be a "#" and tested for that symbol in word(), eating up all the characters until it got to a newline. The version of Seventh Edition I used to carry around and embed in things had that mod. My original Seventh did not.

I think the 7th edition shell I have must have those changes, since it
definitely understands `#' comments.

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
		 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    chet at case.edu    http://tiswww.cwru.edu/~chet/


More information about the TUHS mailing list