#!/bin/sh
# \
exec expectk -f "$0" ${1+"$@"}
#
# NAME
#	multixterm - drive multiple xterms separately or together
#
# SYNOPSIS
#	multixterm [-xa "xterm args"]
#		   [-xc "command"]
#		   [-xd "directory"]
#		   [-xf "file"]
#		   [-xn "xterm names"]
#		   [-xv] (enable verbose mode)
#		   [-xh] or [-x?] (help)
#		   [xterm names or user-defined args...]
#
# DESCRIPTION
#	Multixterm creates multiple xterms that can be driven together
#	or separately.
#
#	In its simplest form, multixterm is run with no arguments and
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry field.
#
#	commands are interactively entered in the first entry fie