Todd C. Miller wrote:
> On Sat, 22 Jan 2022 14:24:17 +0100, =?UTF-8?Q?S=C3=B6ren?= Tempel wrote:
>
> > The patch below fixes this issue by flushing all open output streams
> > before executing the command using system(3). Alternatively, it may also
> > be sufficient to only flush stdout and
On Sat, 22 Jan 2022 14:24:17 +0100, =?UTF-8?Q?S=C3=B6ren?= Tempel wrote:
> The patch below fixes this issue by flushing all open output streams
> before executing the command using system(3). Alternatively, it may also
> be sufficient to only flush stdout and (maybe) stderr.
Just flushing
Hello,
The ed shell escape command currently behaves incorrectly if standard
output isn't line-buffered. As an example, consider the following ed(1)
invocations:
$ cat /tmp/ed-cmd
!echo foo
!!
$ ed < /tmp/ed-cmd
foo
!
echo foo
foo