File: t.touchinstall

package info (click to toggle)
fakeroot 1.37.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,912 kB
  • sloc: sh: 5,437; ansic: 5,346; makefile: 199; perl: 14
file content (10 lines) | stat: -rwxr-xr-x 258 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
#!/bin/sh
. ./defs || exit 1

mkdir $tmp
# fakeroot mangles spaces unless the getopt utility is the GNU version
echo "touch $tmp/iamnotuser; ls -al $tmp/iamnotuser" > $tmp/sh
run_fakeroot -- \
 ${posixshell} $tmp/sh >$tmp/out
cat $tmp/out
grep root $tmp/out