Closed aureliojargas closed 5 years ago
Since the lastaddr property is used in a void /lastaddr/y/!/!/ command, just to reset the "last address" status, it should also contain any address flag, if used, because otherwise it would not be a 100% equivalent address. Example:
lastaddr
/lastaddr/y/!/!/
$ python sedsed.py --token -e '/foo/Ip;s///' linenr:1 addr1:/foo/ addr1flag:I addr2: addr2flag: lastaddr: modifier: id:p content: delimiter: pattern: replace: flag: comment: linenr:1 addr1: addr1flag: addr2: addr2flag: lastaddr:/foo/ modifier: id:s content: delimiter:/ pattern: replace: flag: comment:
Note how the lastaddr:/foo/ line is missing the I flag for the address.
lastaddr:/foo/
I
Investigate if the s flags should also be saved, i.e., s/foo//im; s///.
s
s/foo//im; s///
Since the
lastaddr
property is used in a void/lastaddr/y/!/!/
command, just to reset the "last address" status, it should also contain any address flag, if used, because otherwise it would not be a 100% equivalent address. Example:Note how the
lastaddr:/foo/
line is missing theI
flag for the address.Investigate if the
s
flags should also be saved, i.e.,s/foo//im; s///
.