Skip to content

Commit

Permalink
t0061: Work around a line endings issue with newer versions of cat on…
Browse files Browse the repository at this point in the history
… MSYS

While msysgit uses cat 2.0, mingwGitDevEnv uses cat 5.97, currently. A
change part of the latter version [1] makes cat use the "same rules as
other programs to decide whether to use binary I/O". As a result, cat 5.97
behaves like e.g. awk with respect to which line endings are used if
stdout is redirected to a file, and those are DOS line endings. Ignore
line endings when comparing the test result to work around this.

[1] http://git.savannah.gnu.org/gitweb/?p=coreutils.git;a=commit;h=8770c00ef45e3c6c4dd3d5ce1e55a6fb1adb13dc

Signed-off-by: Thomas Braun <[email protected]>
Signed-off-by: Sebastian Schuberth <[email protected]>
  • Loading branch information
t-b committed Sep 3, 2014
1 parent 9264b1f commit 57a35fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion t/t0061-run-command.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ test_expect_success 'run_command can run a command' '
chmod +x hello.sh &&
test-run-command run-command ./hello.sh >actual 2>err &&
test_cmp hello-script actual &&
test_cmp_text hello-script actual &&
test_cmp empty err
'

Expand Down

0 comments on commit 57a35fd

Please sign in to comment.