While using emacs to edit a bash shell script (#!/bin/sh), anytime I attempt to enter "<<<", on the third bracket it places 'EOF' directly after the bracket, and places two carriage returns at the end of the line, and writes 'EOF' again, like below:
resiline=$(grep -w -n "$searchstring" input/*)
resifile=$(cut -d \: -f 1 <<<EOF $resiline)
EOF
Why does it do this and how do I prevent it from doing that?