#!/bin/bash

fun1() {
  read -p "请输出任意信息" input
  echo input
}

result=$(fun1)
echo return value is $result