#!/usr/bin/env bash function _cat { cat /dev/stdin } echo -e 'This content is passed to a function through piping.\nIf this echoes, the process is successful.' | _cat