Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Background jobs with no job control / disown bug?



According to Peter William Stephenson:
> It occurred to me that one way of avoiding a background job getting
> job control (disown is not a sufficient method in a function) is to
> unsetopt MONITOR, spawn the job, then setopt MONITOR again.

How about spawning it from a subshell?

    % (sleep 30&)
    % jobs
    %

-- 
               Chip Salzenberg, aka <chs@xxxxxxxxx>
        "Hey, it's the Miss Alternate Universe Pageant!"
          -- Crow T. Robot, MST3K: "Stranded In Space"



Messages sorted by: Reverse Date, Date, Thread, Author