> function had to be run twice, so I did a quick & dirty #define, knowing > that the C experts in the Suckless Community can suggest better ways.
The better way is this: sel=`tac history.txt | dmenu` [ -n "$sel" ] && sed -i "\|$sel|d" history.txt; echo "$sel" >> history.txt Or something of the sort. Best, Peter -- sic dicit magister P University of Toronto / Fordham University Collins Hall B06; Office Hours TF10-12 http://individual.utoronto.ca/peterjh gpg --keyserver pgp.mit.edu --recv-keys E0DBD3D6