shithub: riscv

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

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

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

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