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

Add support for GNU sed `~` and `+` addresses #53

Closed aureliojargas closed 5 years ago

aureliojargas commented 5 years ago

Sedsed v1.1 and earlier does not support the ~ and + GNU sed extensions for addresses:

$ ./sedsed.py -e '1~2p'
ERROR: invalid SED command '~' at line 1
$ ./sedsed.py -e '1,~2p'
ERROR: invalid SED command '~' at line 1
$ ./sedsed.py -e '1,+2p'
ERROR: invalid SED command '+' at line 1
$
aureliojargas commented 5 years ago

Fixed by the new sedparse parser, see #52.

$ ./sedsed.py -e '1~2p'
1~2 p
$ ./sedsed.py -e '1,~2p'
1,~2 p
$ ./sedsed.py -e '1,+2p'
1,+2 p
$
aureliojargas commented 5 years ago

See also #33