Question: I have a simple bash shell script I'm running under Git Bash in Windows 10. If I include the usual first line:

```
#!/bin/bash

```

I get the error:

```
bash: #!/bin/bash: No such file or directory

```

If I omit that line, I get the error:

```
bash: $'\357\273\277': command not found

```

I found some commentary online that $'\357\273\277' is a byte-order mark but I don't know what to do with that information. How can I correct this?

Edit: I realize there is no /bin/bash in a Windows file system, but is there an equivalent that should be used for Git Bash?

Answer: 
The text editor saved the file with a BOM that is causing an error. In most editors you find a setting to exclude the byte order mark on save. For instructions on how to do that on Visual Studio, see: [UTF-8 without BOM](https://stackoverflow.com/questions/5406172/utf-8-without-bom/5411486#5411486)
Try this for your first line in your script:

```
#!/usr/bin/bash

```

I also have Git Bash installed under Windows and when I did a "which bash" I got "/usr/bin/bash".