Skip to content
Snippets Groups Projects
Forked from redox-os / ion
200346 commits behind, 42308 commits ahead of the upstream repository.
  • Michael Aaron Murphy's avatar
    2529362c
    Create fork abstraction w/ cmd expans & fn prompts · 2529362c
    Michael Aaron Murphy authored
    This will eliminate some redundancy caused by manually handling forking
    logic in two different areas: command expansions, and function prompts.
    This replacement takes a closure which provides access to the inner
    child's Shell structure, and automatically handles setting up pipes
    and returning the standard output as a String.
    
    As an added bonus, this also eliminates the need to copy the PROMPT
    function before executing it.
    2529362c
    History
    Create fork abstraction w/ cmd expans & fn prompts
    Michael Aaron Murphy authored
    This will eliminate some redundancy caused by manually handling forking
    logic in two different areas: command expansions, and function prompts.
    This replacement takes a closure which provides access to the inner
    child's Shell structure, and automatically handles setting up pipes
    and returning the standard output as a String.
    
    As an added bonus, this also eliminates the need to copy the PROMPT
    function before executing it.