bug-bash
[Top][All Lists]
Advanced

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

Re: [BUG] Bash not reacting to Ctrl-C


From: Bob Proulx
Subject: Re: [BUG] Bash not reacting to Ctrl-C
Date: Tue, 8 Feb 2011 14:00:30 -0700
User-agent: Mutt/1.5.20 (2009-06-14)

Oleg Nesterov wrote:
>       $ sh -c 'while true; do /bin/true; done'

Be careful that 'sh' is actually 'bash'.  It isn't on a lot of
machines.  To ensure that you are actually running bash you should
call bash explicitly.  (At least we can't assume you are running bash
otherwise.)

Is the behavior you observe any different for this case?

  $ bash -c 'while true; do /bin/true || exit 1; done'

Or different for this case?

  $ bash -e -c 'while true; do /bin/true; done'

Bob



reply via email to

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