[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] silent job monitor when 'set +m'
From: |
Jeff Chua |
Subject: |
Re: [PATCH] silent job monitor when 'set +m' |
Date: |
Sun, 8 Nov 2009 19:23:00 +0800 |
On Sun, Nov 8, 2009 at 10:14 AM, Chet Ramey <chet.ramey@case.edu> wrote:
> I think you're confused about the distinction. set -m and +m turn job
> control on and off. The `monitor' name is historical (ask Dave Korn
> why he chose it).
>
That's what confused the whole issue.
> What version of bash are you using?
4.0.35(12)-release
Assuming you mean an interactive shell, bash-4.0 behaves like I think you
> want:
>
> $ sleep 40 &
> [1] 19038
> $ set +m
> $ kill %1
> $ fg %1
> bash: fg: no job control
> $ set -m
> $ sleep 40 &
> [1] 19041
> $ kill %1
> $
> [1]+ Terminated sleep 40
> $
>
That's exactly what I wanted. Thanks for the detailed sample!
Sorry for the confusion. Please ignore the patch. Bash as it is.
Jeff
- [PATCH] silent job monitor when 'set +m', Jeff Chua, 2009/11/07
- Re: [PATCH] silent job monitor when 'set +m', Chet Ramey, 2009/11/07
- Re: [PATCH] silent job monitor when 'set +m', Jeff Chua, 2009/11/07
- Re: [PATCH] silent job monitor when 'set +m', Chet Ramey, 2009/11/07
- Re: [PATCH] silent job monitor when 'set +m',
Jeff Chua <=
- Re: [PATCH] silent job monitor when 'set +m', Jeff Chua, 2009/11/08
- Re: [PATCH] silent job monitor when 'set +m', Chet Ramey, 2009/11/08
- Re: [PATCH] silent job monitor when 'set +m', Jeff Chua, 2009/11/09
- Re: [PATCH] silent job monitor when 'set +m', Chet Ramey, 2009/11/09
- Re: [PATCH] silent job monitor when 'set +m', Marc Herbert, 2009/11/09
- Re: [PATCH] silent job monitor when 'set +m', Chet Ramey, 2009/11/09
- Message not available
- Re: [PATCH] silent job monitor when 'set +m', Jan Schampera, 2009/11/09
- Re: [PATCH] silent job monitor when 'set +m', Jeff Chua, 2009/11/10
- Re: [PATCH] silent job monitor when 'set +m', Chet Ramey, 2009/11/10
- Re: [PATCH] silent job monitor when 'set +m', Jeff Chua, 2009/11/10