I am using v7 Unix in a simh pdp11 emulator.
The only text editor available is ed, I think.
I am trying to write
in ed. It enters ok, but the # will not appear in the saved file. Also entering #'s appears to delete a similar number of characters before the #'s, if you see what I mean:
I entered this in ed and wq'd to write and quit:
Code:
Hello##### is this here?
I have ### added some hash tags
This is what is saved:
Code:
cat test.txt
is this here?
I ha added some hash tags.
I don't seem to need #include <stdio.h> as I it seems I can compile without it in v7, but it would be nice to know why #'s seem to cause problems.