ref: 9bd6366c2795decf34b2367ecf8e492d3a399835
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}