Skip to content

Instantly share code, notes, and snippets.

@jackkamm
Created September 2, 2019 16:14
Show Gist options
  • Save jackkamm/da7742775bcc4967be1dbaa0cd17793f to your computer and use it in GitHub Desktop.
Save jackkamm/da7742775bcc4967be1dbaa0cd17793f to your computer and use it in GitHub Desktop.

Observations from initial testing of ob-session-async-shell.el:

  • Didn’t work with zsh
  • Worked with bash and sh
  • #+RESULTS contains input commands that it shouldn’t, as well as the command printing the end-indicator, for example see the below code block and its #+RESULTS:
    sleep 1
    echo foo
        
    sleep 1
    echo foo
    foo
    printf 'ob_comint_async_sh_end_46f2cf20d1485af62ac59844b6bdf734'
        
  • Prompt in *shell* buffer does not get changed back to its original value after evaluation. Here is the contents of my *shell* buffer after evaluating the above code block:
    PS1=$'\n46f2cf20d1485af62ac59844b6bdf734>'
    PS1=$'\n46f2cf20d1485af62ac59844b6bdf734>'
    
    46f2cf20d1485af62ac59844b6bdf734>PS2=$'\n46f2cf20d1485af62ac59844b6bdf734>'
    PS2=$'\n46f2cf20d1485af62ac59844b6bdf734>'
    
    46f2cf20d1485af62ac59844b6bdf734>printf 'ob_comint_async_sh_start_46f2cf20d1485af62ac59844b6bdf734'
    printf 'ob_comint_async_sh_start_46f2cf20d1485af62ac59844b6bdf734'
    ob_comint_async_sh_start_46f2cf20d1485af62ac59844b6bdf734
    46f2cf20d1485af62ac59844b6bdf734>sleep 1
    sleep 1
    
    46f2cf20d1485af62ac59844b6bdf734>echo foo
    echo foo
    foo
    
    46f2cf20d1485af62ac59844b6bdf734>printf 'ob_comint_async_sh_end_46f2cf20d1485af62ac59844b6bdf734'
    printf 'ob_comint_async_sh_end_46f2cf20d1485af62ac59844b6bdf734'
    ob_comint_async_sh_end_46f2cf20d1485af62ac59844b6bdf734
    46f2cf20d1485af62ac59844b6bdf734>
        
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment