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)
seems like bash is not located in directory you are importing from, make sure you bash is installed in /bin directory only or you can search it by 

```
locate bash

```

it will give you exact location of bash and you can use that

example:- if you bash located in /tmp/bash
then you can import it like

```
#!/tmp/bash

```

or you can check if bash is even installed or not using 

```
cat /etc/shells

```