1#!/bin/sh 2# 3# Test @include of a file with a missing newline 4# 5 6: ${TESTSUDOERS=testsudoers} 7 8# Create test file 9TESTDIR="`pwd`/regress/testsudoers" 10printf "root ALL = ALL" >"$TESTDIR/test15.inc" 11 12MYUID=`\ls -lnd "$TESTDIR/test15.inc" | awk '{print $3}'` 13MYGID=`\ls -lnd "$TESTDIR/test15.inc" | awk '{print $4}'` 14exec 2>&1 15 16echo "Testing @include of a file with a missing newline" 17echo "" 18$TESTSUDOERS -U $MYUID -G $MYGID root id <<-EOF 19 @include $TESTDIR/test15.inc 20 ALL ALL = /usr/bin/id 21EOF 22 23rm -f "$TESTDIR/test15.inc" 24exit 0 25