Skip to content

Commit 06cb6b1

Browse files
yamtdpgeorge
authored andcommitted
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 <[email protected]>
1 parent e3be70b commit 06cb6b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ports/minimal/Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,6 @@ run:
106106
stty $$saved_
107107

108108
test: $(BUILD)/firmware.elf
109-
$(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"
109+
$(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"
110110

111111
include $(TOP)/py/mkrules.mk

0 commit comments

Comments
 (0)