On OpenBSD 7.8 amd, the ed(1) manual page shows: (.,.)m(.) (.,.)t(.)
At the top of the COMMANDS section it says that items in parentheses denote default addresses or address ranges if none is specified. This implies that the destination address for m and t defaults to . and can be omitted. However, the actual ed(1) implementation requires an explicit destination address and m or t without a destination gives the error message destination expected. For example: $ ed -p'*' *a firstrow secondrow . *t ? destination expected *m ? destination expected As far as I know, POSIX ed also requires a destination argument for m and t. I believe the synopsis should be changed to something like: (.,.)m destination (.,.)t destination to avoid suggesting that the destination is optional. Best regards, Tomas Rippl
