I\'m attempting to append the output of a function to a file in a bash script but am receiving an unexpected end of file error.
#!/usr/bin/env bash fn() { ec