minimal: Use printf instead of echo -e.

macOS's echo doesn't have -e option.  printf is in POSIX and more widely
available these days.

Signed-off-by: YAMAMOTO Takashi <yamamoto@midokura.com>
pull/13654/head
YAMAMOTO Takashi 2024-02-15 12:15:02 +09:00 zatwierdzone przez Damien George
rodzic e3be70b5e8
commit 06cb6b1e9f
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -106,6 +106,6 @@ run:
stty $$saved_
test: $(BUILD)/firmware.elf
$(Q)/bin/echo -e "print('hello world!', list(x+1 for x in range(10)), end='eol\\\\n')\\r\\n\\x04" | $(BUILD)/firmware.elf | tail -n2 | grep "^hello world! \\[1, 2, 3, 4, 5, 6, 7, 8, 9, 10\\]eol"
$(Q)/usr/bin/printf "print('hello world!', list(x+1 for x in range(10)), end='eol\\\\n')\\r\\n\\004" | $(BUILD)/firmware.elf | tail -n2 | grep "^hello world! \\[1, 2, 3, 4, 5, 6, 7, 8, 9, 10\\]eol"
include $(TOP)/py/mkrules.mk