sed -f -
Jack Bates
o0m74w at nottheoilrig.com
Fri Apr 8 17:02:38 UTC 2016
Awesome! I confirm that it now works as expected, thanks!
On 07/04/16 03:53 PM, Denys Vlasenko wrote:
> 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