#!/bin/sh . ./defs || exit 1 mkdir $tmp # fakeroot mangles spaces unless the getopt utility is the GNU version echo "mknod $tmp/hda3 b 3 0 && chmod 644 $tmp/hda3 && ls -ld $tmp/hda3" > $tmp/sh run_fakeroot -- \ ${posixshell} $tmp/sh > $tmp/out cat $tmp/out grep '^b' $tmp/out