#!/bin/sh versus #!/bin/bash

William Hooper whooperhsd3 at earthlink.net
Fri Jan 9 23:14:46 UTC 2004


Matthew Zimmerman said:
> However, if I modify the poundbang line to call /bin/bash
> instead...
>
> ---
> matt at macko ~ $ vim test.sh
> matt at macko ~ $ chmod +x test.sh
> matt at macko ~ $ cat test.sh
> #!/bin/bash
>
> echo Hello world
> matt at macko ~ $ ./test.sh
> ./test.sh: ./test.sh: No such file or directory

Odd.

[whooper at butters whooper]$ cat test.sh
#!/bin/bash

echo Hello world
[whooper at butters whooper]$ ./test.sh
Hello world
[whooper at butters whooper]$ rpm -q bash
bash-2.05b-34
[whooper at butters whooper]$


-- 
William Hooper





More information about the fedora-list mailing list