#!/usr/bin/expect -f

# Send SIGWINCH to spawned children so terminals can be resized.
trap {
  set rows [stty rows]
  set cols [stty columns]
  stty rows $rows columns $cols < $spawn_out(slave,name)
} WINCH

set timeout 1

spawn -noecho bash
expect
send $argv
interact
exit
