shithub: riscv

ref: 8a4a2dea70aa77475a50968f4c5bd6cdab5d2fb1
dir: /sys/src/cmd/git/test/util.rc/

View raw version
fn q {
	{$* > /tmp/out.$pid && rm /tmp/out.$pid} || cat /tmp/out.$pid
}
fn qq {
	$* >/dev/null >[2]/dev/null
}

fn die {
	st=$status
	if(! ~ $st ''){
		*=($* : $st)
		echo $"*
		exit $"*
	}
}

G=`{cleanname `{pwd}^/..}