gVim, UTF-8 and Shell Scripts
Ever got the message
./x.bash: line 1: #!/bin/bash: No such file or directory?
I did. And wondered why. After some googling and hex viewer searching, I found the culprit. The BOM.
The byte order mark (BOM) is a Unicode character used to signal the endianness (byte order) of a text file or stream.
As this is optional, I just removed the
set bomb from my .vimrc and „suddenly” my shell scripts work without an error. :)