(using test -c) as well as being writable, before trying to write to it.
Otherwise, the test could mistakenly append a newline to an existing,
regular, writable, /dev/full file.
Suggested by Ulrich Drepper.
case "$all_programs" in
*nohup*)
- if test -w /dev/full && echo > /dev/full; then
+ if test -w /dev/full && test -c /dev/full && echo > /dev/full; then
cat 1>&2 <<\EOF
************************************************
WARNING: On this system, the built-in echo function of /bin/sh
./$i --version >/dev/null || fail=1
# Make sure they fail upon `disk full' error.
- if test -w /dev/full; then
+ if test -w /dev/full && test -c /dev/full; then
./$i --help >/dev/full 2>/dev/null && fail=1
./$i --version >/dev/full 2>/dev/null
status=$?