shithub: riscv

ref: 7d7e8ae31ac01434c7017afce4eb0a033281a757
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}^/..}