minix/test/testinterp.sh
Ben Gras 34a8901eb8 vfs,avfs: verify an interpreter was found on #! line
. if not, NULL *interp is dereferenced
2011-12-21 23:44:13 +01:00

14 lines
232 B
Bash
Executable file

#!/bin/sh
# See if the system can handle an unexpected whitespace-only interpreter line
echo -n "Test interpreter "
set -e
TMPSH=tst$$.sh
rm -f $TMPSH
echo '#! ' >$TMPSH
chmod 755 $TMPSH
./$TMPSH || true
rm -f $TMPSH
echo "ok"