removing _EOF_ from end of bash -c command