summaryrefslogtreecommitdiff
path: root/tests/herestr.tests
blob: f77b229f522171d5d03746da1e0c54469784b365 (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
28
29
30
31
32
33
34
35
36
37
38
39
a=hot
b=damn
f1()
{
cat <<< "abcde"

cat <<< "yo"

cat <<< "$a $b"

cat <<< 'what a fabulous window treatment'

cat <<< 'double"quote'
}

f2()
{
cat <<< onetwothree
}

f3()
{
cat <<< "$@"
}

f1
f2
f3 first second third

typeset -f

cat <<< 'echo $(echo hi)'

cat <<< "echo ho"

cat <<< "echo $(echo off to work we go)"

IFS="/" read -r -d $'\000' -a uu <<< /kghfjk/jkfzuk/i
declare -p uu