shithub: bin.rc

ref: e467b6f5ab07f5bea9049d1cb5f61d8d3846928b
dir: /bin/cin/

View raw version
#!/bin/rc
rfork e
nl='
'
while(line=`$nl{read}){
	cmd=$line
	if(~ $#cmd 0) cmd='\r'
	switch($cmd){
	case '\r'
		ci /env/code
	case '\t'
		time ci /env/code
	case '\prof'
		ci -p /env/code
	case '\p'
		cat /env/code
	case '\c'
		>/env/code
	case *
		echo $line >>/env/code
	}
}