# file : tests/test/script/builtin/cat.test # copyright : Copyright (c) 2014-2016 Code Synthesis Ltd # license : MIT; see accompanying LICENSE file .include ../common.test : in : $c <>EOO foo bar EOF foo bar EOO EOI $b : dash : $c <>EOO foo bar EOF foo bar EOO EOI $b : file : $c <>>out; foo bar EOF cat out >>EOO foo bar EOO EOI $b : in-repeat : $c <>EOO foo bar EOF foo bar EOO EOI $b : non-existent : : Note that there is an optional trailing blank line in the regex that matches : the newline added by msvcrt as a part of the error description. : $c <>~%EOE% != 0 %cat: unable to print '.+[/\\]test[/\\]cat[/\\]non-existent[/\\]test[/\\]1[/\\]in': .+% %%? EOE EOI $b : empty-path : : Cat an empty path. : $c <"cat: invalid path ''" == 1 EOI $b # @@ When piping is ready test cat on a big file to test it is asynchronous. #