|
| From: | Anoop Sharma |
| Subject: | Re: [Help-bash] Bash is setting disposition of a signal, ignored upon entry to shell, to default |
| Date: | Sat, 12 Jan 2013 22:59:14 +0530 |
On Fri, Jan 11, 2013 at 11:52:04AM +0530, Anoop Sharma wrote:
> I am testing on Ubuntu 12.04.1 LTS.
>
> I have narrowed down this issue a bit more. The problem is not seen when I
> include a "#! /bin/bash" in the script or if I use the command "bash -c
> test_1.sh".
>
> It is only seen when I rely on bash as ubuntu default command interpreter
> to work. I have verified that ubuntu does invoke the same bash as the
> command interpreter by including BASH_VERSION in the script.
I don't understand the last paragraph. Â What are you actually doing?
Are you using #!/bin/sh in the script? Â Are you typing "sh scriptname"
in a terminal window? Â Are you omitting a shebang line altogether and
relying on some unspecified shell to guess how to handle it?
If you have configured your Ubuntu system so that /bin/sh points to bash
instead of dash, and if you're invoking your script with /bin/sh (symlink
to bash), then you should be aware that invoking bash under the name of
sh causes it to disable certain options. Â But this is a lot of "ifs".
| [Prev in Thread] | Current Thread | [Next in Thread] |