Forcing builtins (interactive, non-interactive shells) to execute in fork()'ed process.

2016-10-26 Thread Matthew Giassa
I'm doing some testing with an on-screen colorizer library I wrote, which does some PTY manipulation, captures screen output, and renders certain regex patterns in certain colors. It's designed to help testers notice certain keywords in a test environment that is not easily automated. On bash 4.3.

RE: Forcing builtins (interactive, non-interactive shells) to execute in fork()'ed process.

2016-10-26 Thread Matthew Giassa
I figured it out. Turns out PS1 wasn't set. Interesting how this impacts interactive process fork behavior (maybe it runs some things the way non-interactive processes would normally be launched)? Matthew Giassa, MASc, BASc, EIT Security

Re: Forcing builtins (interactive, non-interactive shells) to execute in fork()'ed process.

2016-10-26 Thread Eduardo Bustamante
Hi Matthew, I have a couple questions: 1. How are you testing this? (small concrete cases are helpful) 2. Do you have some specific builtins that exhibit that behavior? (it doesn't make sense for builtins to fork on their own, unless you're doing an explicit subshell. Like you mentioned, executin