On Wed, Sep 1, 2021, 8:42 PM Greg Wooledge <g...@wooledge.org> wrote:
> On Wed, Sep 01, 2021 at 09:37:02PM -0400, Dale R. Worley wrote: > > "C. Yang" <he...@cheryllium.com> writes: > > > emacs test.txt & > > > > > > fg > > > > > bash: fg: no job control > > > It sounds like Bash doesn't activate the job-control features until > > .bashrc is completed. > > Well, there's an easy fix for that. Just put "set -m" before the > last two commands. > > I tested with "set -m" and "vim & fg" just now, and it appeared to work. > > Do processes started in .bashrc have a terminal? I would suspect that something without a try would either complain or work differently. I'll have to play around with it.