Re: #!/bin/sh versus #!/bin/bash

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

Odd.

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

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


-- 
William Hooper




[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux