# file : tests/test/script/builtin/cat.test # copyright : Copyright (c) 2014-2018 Code Synthesis Ltd # license : MIT; see accompanying LICENSE file .include ../common.test : in : $c <>EOO foo bar EOF foo bar EOO EOI : dash : $c <>EOO foo bar EOF foo bar EOO EOI : file : $c <=out; foo bar EOF cat out >>EOO foo bar EOO EOI : in-repeat : $c <>EOO foo bar EOF foo bar EOO EOI : non-existent : $c <>/~%EOE% != 0 %cat: unable to print '.+/test/cat/non-existent/test/1/in': .+% EOE EOI : empty-path : : Cat an empty path. : $c <"cat: invalid path ''" == 1 EOI : big : : Cat a big file (about 100K) to test that the builtin is asynchronous. : { $c <"$s" EOI }