#!/usr/bin/env bash
expect -c "'hello
world'" msg hello world
expect -c -s "'welcome hell!'" msgf '%s %s%c' welcome hell '!'
setmsg 2 '@%s@'
expect -c -2 "'@heaveno
world@'" msg 'heaveno
world'
setmsg 1 '//%-40so/%s'
expect -c -s "'//こんにちは🅆🄾🅁🄻🄳     o/🤔'" msg 'こんにちは🅆🄾🅁🄻🄳' '🤔'
expect -c -2 'Error: test*' err 'test'
