\begin{frame}[fragile]
	\begin{lstlisting}[style=bashscript]
foo() {
	echo "bar"
}

barbaz=$(foo | sed 's/r/z/g')
	\end{lstlisting}
\end{frame}
