sed -f -

Denys Vlasenko vda.linux at googlemail.com
Thu Apr 7 22:53:50 UTC 2016


Fixed in git just now, please try it.

On Tue, Apr 5, 2016 at 6:30 PM, Jack Bates <o0m74w at nottheoilrig.com> wrote:
> I wish that the following worked, but it doesn't:
>
>> nottheoilrig at debian:~/busybox-1.24.2$ echo s/foo/bar/ | ./busybox sed -f -
>> sed: can't open '-': No such file or directory
>> 1 nottheoilrig at debian:~/busybox-1.24.2$
>
>
> Is this by design? Would you welcome a patch to make it work?
>
> I sometimes use "echo -e '... \n ...' | sed -f - -i filename" in e.g. Debian
> preseed files or Makefiles, because the sed a, i and c commands are
> particular about newline characters.
> _______________________________________________
> busybox mailing list
> busybox at busybox.net
> http://lists.busybox.net/mailman/listinfo/busybox


More information about the busybox mailing list