wiki.techinc.nl/tests/phpunit/includes/diff/TextDiffer/externalDiffTest.sh
Máté Szabó 84ee098126 Fix ExternalTextDifferTest on macOS
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
2024-05-04 19:56:27 +00:00

8 lines
64 B
Bash
Executable file

#!/bin/sh
printf '%s' '- '
cat $1
echo
printf "+ "
cat $2
echo