#!/bin/rc
path=(. /bin)
req_p=`{echo -n $REQUEST_URI }
fn run {
lpaf=home$REQUEST_URI
rpafs='/'; wd='/'; ifs='/';
arg = `{echo -n $REQUEST_URI}
if (test -d $lpaf) {
lpaf=$lpaf^'i'
}
for (i in $arg) {
wd=$wd^$i
rpafs=($rpafs $wd)
wd=$wd'/'
}
echo;
for (h in $bar) { $$h }
mh $lpaf.md
}
fn sbar {
echo -n '" }'
}
fn add {
_l = $1^_^$#$1
$_l = $*(2-)
$1 = ($$1 $_l)
}
add bar sbar; run