Re: /bin/sh linked to dash?
- To: Francesco Pietra <chiendarret@gmail.com>
- Cc: amd64 Debian <debian-amd64@lists.debian.org>
- Subject: Re: /bin/sh linked to dash?
- From: Goswin von Brederlow <goswin-v-b@web.de>
- Date: Sun, 31 Jul 2011 19:42:25 +0200
- Message-id: <87tya2e48u.fsf@frosties.localnet>
- In-reply-to: <BANLkTi=6b4PsDKEdSfRvw+g+RJkSjDGQ4w@mail.gmail.com> (Francesco Pietra's message of "Fri, 1 Jul 2011 19:48:09 +0200")
- References: <BANLkTi=6b4PsDKEdSfRvw+g+RJkSjDGQ4w@mail.gmail.com>
Francesco Pietra <chiendarret@gmail.com> writes:
> I wonder whether amd64 wheezy links /bin/sh to dash instead of bash.
>
> I am getting error "Bad fd number, can't run mopac.h" in a mopac.sh
> calculation (mopac compiled fortran, in fact a FOR005 file is
> generated, and not deleted by mopac probably because it was running
> bad).
>
> I am asking that (and thus if a symlink is needed using bash, as in my
> case) because with the same code (and same calculation) I had no such
> error with amd64 lenny. I have just copied the whole
> molecular-mechanics compiled code (which includes mopac among hundreds
> of other codes) from a lenny machine to a wheezy machine. The reason
> of the copy is that the molecular-mechanics code can't be compiled
> with recent gcc/fortran (its loose fortran is not allowed by recent
> compilers) while the wheezy cuda machine is far faster than the old
> cpu machine.
>
> thanks
> francesco pietra
/bin/sh in debian is a posix shell with some tiny extras (echo -n for
example and printf). It can be either dash or bash depening on your
configuration. New installs default to dash, upgrades default to keeping
bash as /bin/sh.
Overall, if mopac.sh needs bash then it must use #!/bin/bash.
MfG
Goswin
Reply to: