Skip to content
Prev 34469 / 63421 Next

(PR#14012)

Seth Falcon wrote:
Notice also that other script interpreters aren't happy about CR line 
endings:

$ cat > x.sh
#!/bin/bash
echo hello

Now change the LF to CR and get

$ ./x.sh
bash: ./x.sh: /bin/bash^M: bad interpreter: No such file or directory

or (if you add a space)

$ ./x.sh
  echo hello: No such file or directory

$ bash -v ./x.sh
  echo hello

(overprinting is involved in the last one).