athornton / gnusto-frotz-tops20

Tool for modifying frotz sources to compile under TOPS-20
MIT License
12 stars 1 forks source link

Usage info is mangled by symbol substitution #2

Open DavidGriffith opened 5 years ago

DavidGriffith commented 5 years ago

For the page of info printed by Frotz when started without a zcode file to load, one can see that the word "interpreter" has been mangled to something else.

DavidGriffith commented 4 years ago

Pull #3 fixes the problem by adding (?!\\w) to the starting regex, which makes it ignore alphanumeric characters after the match -- so interpreter doesn't get turned into A00033er among other things.

DavidGriffith commented 4 years ago

There's something about sed that isn't working correctly or I don't completely understand what's going on. According to testing at https://www.regextester.com/, a regex of interpret(?!\w) should match interpret, but not interpreter. When I put it into my snavig script and your gnusto script, it didn't perform like that. Rather, it matched nothing in the Frotz source code. So, I'd like to back out this commit and go back to the drawing board.

DavidGriffith commented 4 years ago

Now fixed and verified in #4.