#!/bin/bash set -e set -o pipefail case "$0" in [^/]* ) PATH=$(realpath -e "$(dirname "$BASH_SOURCE")"):$PATH ;; esac source rpc.bash gudge() { echo "Hello, ${REPLY@Q}." topic=${*@Q} echo "Don't argue with me about ${topic:-punctuation}." } fudge() { read -p "[$(hostname)] Name? " && gudge "$@" exit } with_ssh_options -4 -- \ remote_run_function \ fudge "$@"