summaryrefslogtreecommitdiff
path: root/rc/bin/""
blob: d5089583cdd61d52cbf69302bde844238a43241b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/rc

PROMPT='[^ 	]*(%|;)+[ 	]+'

_x = `{" $* | tail -1}
if(~ $#_x 0) {
	echo no such command found
	exit notfound
}

echo '	' $_x
_x=`{ echo -n 'eval '''; echo $_x | sed 's/^'$PROMPT'//; s/''/''''/g; s/$/''/'}
rc -c $"_x