4/28/2011, "Walter Dnes" <waltd...@waltdnes.org> wrote: > This message is coming from my 32-bit "hot backup" gentoo machine. >For some reason, any script that I call on my 64-bit machine immediately >returns to the command prompt. No warnings or error messages or >diagnostics. Builtins and compiled executables work OK. For instance, >if I have a script named "xyz" that goes like so... > >#!/bin/bash >man bash > >..., executing "xyz" or "~/bin/xyz" results in bash immediately >returning to to the command prompt. If I type "man bash", it works OK.
I am not an expert in scripts at all, but I remember there is difference between interactive and non-interactive shells that could cause things like this. What happens if you try to execute a script with non-interactive command? For example: #!/bin/bash echo "I am script" And, just for a case... Are all scripts executable? (+x) -- Regards, Alex