help-bash
[Top][All Lists]
Advanced

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

Re: [Help-bash] Bash is setting disposition of a signal, ignored upon en


From: Greg Wooledge
Subject: Re: [Help-bash] Bash is setting disposition of a signal, ignored upon entry to shell, to default
Date: Fri, 11 Jan 2013 08:30:11 -0500
User-agent: Mutt/1.4.2.3i

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".



reply via email to

[Prev in Thread] Current Thread [Next in Thread]