On Tue, May 20, 2014 at 06:44:14PM +0200, frantisek holop wrote: > i have noticed that the sed man page has some strange > clippings. the attached patch fixes it for me, but i > dont know what was the intended effect. > > before: > > [1addr]a\ > text > > Write text to standard output immediately before each attempt > to read a line of input, whether by executing the `N' function > or by beginning a new cycle. > > after: > > [1addr]a text > Write text to standard output immediately before each attempt > to read a line of input, whether by executing the `N' function > or by beginning a new cycle. > >
it's meant to look like that, though i'm not 100% sure that it can only take that format. you can look online for some example uses. however the man page way of using two list items to show this is a bit nasty. they should probably be rewritten. jmc > --- sed.1.orig Tue May 20 15:25:58 2014 > +++ sed.1 Tue May 20 15:30:16 2014 > @@ -283,9 +283,7 @@ > .Em function-list > only when the pattern space is selected. > .Pp > -.It [1addr] Ns Em a Ns \e > -.It Em text > -.Pp > +.It [1addr] Ns Em a Em text > Write > .Em text > to standard output immediately before each attempt to read a line of input, > @@ -299,9 +297,7 @@ > function with the specified label. > If the label is not specified, branch to the end of the script. > .Pp > -.It [2addr] Ns Em c Ns \e > -.It Em text > -.Pp > +.It [2addr] Ns Em c Em text > Delete the pattern space. > With 0 or 1 address or at the end of a 2-address range, > .Em text > @@ -330,9 +326,7 @@ > Append a newline character followed by the contents of the pattern space > to the hold space. > .Pp > -.It [1addr] Ns Em i Ns \e > -.It Em text > -.Pp > +.It [1addr] Ns Em i Em text > Write > .Em text > to the standard output. > > > -f > -- > friends, romans, and countrymen, lend me your ears.

