#!/bin/rc
if (! ~ $DEBUG '') flag x +
if (~ $OUTDEV -) OUTDEV=/fd/1
if (~ $#* 0) {
       @{bind -b $LPLIB/process /bin; $LPPROC} > $OUTDEV
       if (! ~ $LPDEST stdout) echo -n `{ascii -t 4} > $OUTDEV
}
if not {
       for (i in $*) {
               @{bind -b $LPLIB/process /bin; $LPPROC} < $i > $OUTDEV
               if (! ~ $LPDEST stdout) echo -n `{ascii -t 4} > $OUTDEV
       }
}
exit ''