changelog shortlog tags branches changeset files revisions annotate raw help

Mercurial > hg > plan9front / rc/bin/""

changeset 7243: 34f64dcbbc25
parent: 0dbb01291c38
author: cinap_lenrek@felloff.net
date: Fri, 17 May 2019 18:14:10 +0200
permissions: -rwxr-xr-x
description: 7l: don't hardcode 4k pagesize, use INITRND
1 #!/bin/rc
2 
3 PROMPT='[^ ]*(%|;)+[ ]+'
4 
5 _x = `{" $* | tail -1}
6 if(~ $#_x 0) {
7  echo no such command found
8  exit notfound
9 }
10 
11 echo ' ' $_x
12 _x=`{ echo -n 'eval '''; echo $_x | sed 's/^'$PROMPT'//; s/''/''''/g; s/$/''/'}
13 rc -c $"_x