issues
search
briandfoy
/
PerlPowerTools
Perl Power Tools
https://metacpan.org/pod/PerlPowerTools
Other
211
stars
53
forks
source link
ed: line 0 is invalid for write command
#658
Closed
mknos
closed
1 month ago
mknos
commented
2 months ago
When testing previous commit I discovered that this version of ed incorrectly accepts "0,1w file.mp3" command
Address range 0-1 is not valid because lines count from 1
Error was also not raised for "0w file.mp3", i.e. single-address mode
Follow OpenBSD and GNU versions by printing invalid-address error
Technically, the command ",1w file" is valid; this is interpreted as implied range of "1,1" which is the same as just "1w"
briandfoy
commented
1 month ago
changes: line 0 is no longer valid for write command