xref: /freebsd/bin/sh/tests/builtins/read10.0 (revision 3332f1b444d4a73238e9f59cca27bfc95fe936bd)
1
2set -e
3
4v=original_value
5r=0
6read v < /dev/null || r=$?
7[ "$r" -eq 1 ]
8[ -z "$v" ]
9