#!/bin/bash

shopt -s lastpipe

testfunc() {
  echo | cat
}

echo | testfunc
