From: "bob flandrena" <[email-masked]>
Date: Tue, 25 Jun 1996 12:21:17 -0400

> samterm seems to respond fairly badly to an input of {}
> if it has no files open.

i posted a fix to this several months ago:

% diff /n/dump/1995/0401/sys/src/cmd/sam/xec.c xec.c
29c29
< 	    !utfrune("bBnqUXY!{", cp->cmdc) &&
---
> 	    !utfrune("bBnqUXY!", cp->cmdc) &&
33c33
< 	if(cmdtab[i].defaddr != aNo){
---
> 	if(i >= 0 && cmdtab[i].defaddr != aNo){

there are several other bug patches for sam in
the boddle package available by anonymous
ftp at plan9.att.com in plan9/update/cmd/sam/829146783.rc.
the diff's are relative to the plan 9 version of
sam and require rc to unpack, but are easy to
extract by hand and apply to the unix version.