1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-04-18 09:46:33 +02:00
Files
coreutils/tests/tail-2/proc-ksyms
2001-11-13 10:19:39 +00:00

22 lines
373 B
Bash
Executable File

#!/bin/sh
# Prior to textutils-2.0.17, `tail /proc/ksyms' would segfault on Linux.
if test "$VERBOSE" = yes; then
set -x
tail --version
fi
pwd=`pwd`
tmp=proc-ksyms.$$
trap 'status=$?; cd $pwd; rm -rf $tmp && exit $status' 0
trap '(exit $?); exit' 1 2 13 15
fail=0
ksyms=/proc/ksyms
if test -f $ksyms; then
tail $ksyms > /dev/null || fail=1
fi
(exit $fail); exit