bug-bash
[Top][All Lists]
Advanced

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

Re: Interactive commands cant be backgrounded if run from bashrc


From: Greg Wooledge
Subject: Re: Interactive commands cant be backgrounded if run from bashrc
Date: Wed, 1 Sep 2021 21:42:14 -0400

On Wed, Sep 01, 2021 at 09:37:02PM -0400, Dale R. Worley wrote:
> "C. Yang" <hello@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.



reply via email to

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