shithub: bin.rc

ref: 32dae5e4a11c5d7876ce45d221930f84d37e83e2
dir: /bin/21/

View raw version
#!/bin/rc
# 21 - poor man's acme 2-1 chord for sam
rfork e
for(i in `{seq 1 $#*})
	args=($args ''''$$i'''')
cat >/env/pgm <<'.'
cd `{basename -d $%}
$* $"%s
cat
.
window -m 'rc /env/pgm '$"args