1#!/bin/sh
2. ./defs || exit 1
3
4mkdir $tmp
5# fakeroot mangles spaces unless the getopt utility is the GNU version
6echo "touch $tmp/iamnotuser; ls -al $tmp/iamnotuser" > $tmp/sh
7run_fakeroot -- \
8 ${posixshell} $tmp/sh >$tmp/out
9cat $tmp/out
10grep root $tmp/out
11