sh-execute-region

sh-execute-region is an interactive compiled Lisp function in `sh-script.el'.


(sh-execute-region START END &optional FLAG)

Pass optional header and region to a subshell for noninteractive execution.
The working directory is that of the buffer, and only environment variables
are already set which is why you can mark a header within the script.

With a positive prefix ARG, instead of sending region, define header from
beginning of buffer to point. With a negative prefix ARG, instead of sending
region, clear header.