Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ed: line 0 is invalid for write command (#658)
* When testing previous commit I discovered 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, ",1w file" command is valid because this is interpreted as implied range of "1,1" which is the same as just "1w"
- Loading branch information