[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: |
Thu, 2 Sep 2021 12:22:23 -0400 |
On Thu, Sep 02, 2021 at 12:15:35PM -0400, C. Yang wrote:
> I can confirm that adding `set -m` before the emacs command in .bashrc results
>
> in the behavior I want with CTRL+Z. As I understand, `set -m` will enable job
>
> control features. This suffices for my use case.
>
>
>
> However, is it possible that there may be further unexpected consequences,
>
> since bash is still waiting to complete initialization this entire time?
>
>
>
> For instance, if I stop and background emacs, then I find myself back to the
> bash
>
> shell. But technically, bash is still waiting for .bashrc to complete.
No, you're mistaken. When you suspend emacs, bash finishes reading
the .bashrc file, and *then* it prints the shell prompt.
The fact that you see the prompt means bash has completed its startup.