ref: 20ecadc4bee20598de971afda585621f6d89471b
dir: /run/
#!/bin/rc
rfork e
flags=()
while(~ $1 -* && ! ~ $1 --){
flags=($flags $1)
shift
}
if(~ $1 --)
shift
{
echo cd `{x/path -P}
if(! grep -s '/dev/cons' /fd/0ctl)
cat
if not
echo $"*
}| ssh $flags `{x/path -l}