shithub: bin.rc

ref: bfbee0e43fd147a6cfa1289e37c06f271adb0af4
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