In POSIX sh, `echo` flags are undefined. On macOS, this causes the expected output to include literal `-n`s instead of the expected behavior of not printing trailing newlines. So, use `printf` instead, which should work consistently on both macOS and Linux. Follows-up I5c506e3916285. Change-Id: I54fc42d8fb8156fcf1d623ef4a7515092e634f09
8 lines
64 B
Bash
Executable file
8 lines
64 B
Bash
Executable file
#!/bin/sh
|
|
|
|
printf '%s' '- '
|
|
cat $1
|
|
echo
|
|
printf "+ "
|
|
cat $2
|
|
echo
|