POSIX-compliant ed in BusyBox?

Roy Tam roytam at gmail.com
Mon Apr 16 01:39:11 UTC 2012


Hi all,

The BusyBox ed is too noisy that breaks the usage from other programs. for
example, mksh's history editing.

FAIL ./check.t:history-ed-1-old (ignored)
        Description:
                Basic (ed) editing works (assumes you have generic ed editor
                that prints no prompts). This is for oldish ed(1) which write
                the character count to stdout.
        unexpected stdout - first difference: line 2, char 1 (wanted '1', got '"'
        wanted:
                abc def
                13
                16
                FOOBAR def
        got:
                abc def
                "/tmp/sh89y2qe.tmp", 1 lines, 13 chars
                : : "/tmp/sh89y2qe.tmp", 1 lines, 16 chars
                : Really quit? FOOBAR def

I think it will be nice if there is an option to make ed keeps the fancy/noisy
messages and let POSIX-compliant output be default.

Best regards,
Roy



More information about the busybox mailing list