aureliojargas / sedsed

Debugger and code formatter for sed scripts
https://aurelio.net/projects/sedsed/
GNU General Public License v3.0
115 stars 10 forks source link

Remove unused `extrainfo` field #65

Closed aureliojargas closed 5 years ago

aureliojargas commented 5 years ago

This field is only used by commands t and T to store the index position for the lastest s command found. The idea is to track where was the related s that t will test the status.

But in practice it does not work in all cases, since due to GOTO commands such as b or t, the script flow can change, and the previous s in the original code could not be the latest s executed when the code is running.

Since only in runtime this information can be reliable, it's better to remove it from sedsed.

Currently, this information was currently only shown in --token output.