Greg Rivers <[email protected]> wrote: > On Saturday, May 09, 2015 22:25:48 Michael Grimm wrote:
>>> or just try if it works if you change it to /bin/sh and use whatever >>> FreeBSD has that pointing to. >> That fails because /bin/sh equals /bin/csh at FBSD. > I don't know if it fails or not, but if it does this is not the reason. > /bin/sh most certainly is not /bin/csh; Ups. Yes, that is correct. Sorry, my fault. > if it were, the system would not boot > given that all the rc start-up scripts are written in Bourne shell. But here I will insist on /bin/sh != /bin/bash ;-) The FBSD OS is bourne free, if I am not mistaken again. > OTOH, /bin/csh and /bin/tcsh are identical: > > 108 -r-xr-xr-x 2 root wheel 382368 Nov 11 15:03 /bin/csh* > 118 -r-xr-xr-x 1 root wheel 142184 Nov 11 15:03 /bin/sh* > 108 -r-xr-xr-x 2 root wheel 382368 Nov 11 15:03 /bin/tcsh* ls -al /bin/sh /usr/local/bin/bash (FBSD 10.1-STABLE): | -r-xr-xr-x 1 root wheel uarch 142144 May 8 13:57 /bin/sh | -rwxr-xr-x 1 root wheel uarch 895712 May 8 13:09 /usr/local/bin/bash JFTR: Both scripts fail to run with FBSD's /bin/sh (lot of syntax errors), but run to completion when modifying the first line to "#!/usr/local/bin/bash" (needed, because ports are installed into /usr/local). Regards, Michael
