summaryrefslogtreecommitdiffhomepage
path: root/tests/zash/print.sh
blob: 8cb23eecdad8ef194182db4a0c726674f70af179 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# print: the Korn shell's echo.
print one two
print -n no-newline; print
print 'esc\tape\n-'
print -r 'raw\tape'
print -R -n 'raw -n is text'
print -- -n
print - -r
print -u2 to-stderr 2>&1
print -u 2 also 2>&1
exec 3>out.txt; print -u3 to-three; exec 3>&-; cat out.txt
print -u9 x; echo "status=$?"
print -z 2>/dev/null; echo "status=$?"
print 'stop\chere'; print
x=$(print sub); echo "[$x]"
print a | tr a b
print