summaryrefslogtreecommitdiffhomepage
path: root/tests/zash/cmdsub-file.sh
blob: 96d81d2fac7212b607e376e927c5292d6afe742d (plain)
1
2
3
4
5
6
7
seq() { awk "BEGIN { for (i = $1; i <= $2; i++) print i }"; }
printf 'line1\nline2\n\n' >f
x=$(<f); echo "[$x]"
echo $(<f)
echo "$(< f)"
x=$(<nonexistent) ; echo "s=$?"
echo big; seq 1 50000 >big; b=$(<big); echo ${#b}