#!/bin/bashprint_message() { echo "some message"}return_value=print_messageecho "$return_value"return_value2=$(print_message)echo "$return_value2"
Standard input is empty
print_message some message
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!