Robert Citek
2010-10-01 14:08:46 UTC
I get the following odd behaviour with a here doc in bash:
$ { cat <<eof
eof
}
Then press up-arrow. And I see this:
$ { cat <<eof
eof
; }
Press Enter, I get an error:
-su: syntax error near unexpected token `;'
Bash has inserted a semi-colon before the "}".
This is with bash 4.1.5(1)-release on Ubuntu Linux 10.04. Anyone
else seeing this?
Regards,
- Robert
$ { cat <<eof
eof
}
Then press up-arrow. And I see this:
$ { cat <<eof
eof
; }
Press Enter, I get an error:
-su: syntax error near unexpected token `;'
Bash has inserted a semi-colon before the "}".
This is with bash 4.1.5(1)-release on Ubuntu Linux 10.04. Anyone
else seeing this?
Regards,
- Robert