Don't fork functions, prefer to execute in foreground
When the result is needed, use the .command method on Expander to streamline the expansion When the function is blocking (ex: COMMAND_NOT_FOUND), don't fork and execute the function in foreground instead
Showing
- src/binary/mod.rs 9 additions, 9 deletionssrc/binary/mod.rs
- src/binary/prompt.rs 2 additions, 23 deletionssrc/binary/prompt.rs
- src/lib/builtins/mod.rs 4 additions, 2 deletionssrc/lib/builtins/mod.rs
- src/lib/shell/fork.rs 0 additions, 8 deletionssrc/lib/shell/fork.rs
- src/lib/shell/fork_function.rs 0 additions, 34 deletionssrc/lib/shell/fork_function.rs
- src/lib/shell/mod.rs 1 addition, 3 deletionssrc/lib/shell/mod.rs
Loading
Please register or sign in to comment