blob: 3227e892e58f9e38371b86fc5821c2b496d46771 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
# file : tests/test/script/builtin/echo.testscript
# copyright : Copyright (c) 2014-2019 Code Synthesis Ltd
# license : MIT; see accompanying LICENSE file
.include ../common.testscript
: string
:
$c <'echo foo >foo' && $b
: strings
:
$c <'echo foo bar >"foo bar"' && $b
: big
:
: Echo a big string (about 100K) to test that the builtin is asynchronous.
:
{
$c <<EOI && $b
s="--------------------------------"
s="$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s"
s="$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s"
s="$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s"
echo "$s" | cat >"$s"
EOI
}
|