Shell integration breaks $? for PS1
By pe...@morth.org on February 05, 2015 09:23 (imported from Google Code)
What steps will reproduce the problem?
- Install shell integration
- sed -i -e $'1i\\nPS1=': $(printf "%00d" $?) ; '' .profile
- Logout and back in.
- bash -c 'exit 3'
What is the expected output?
Mark with "exit status 3" and prompt saying : 3 ;
What do you see instead?
The mark works but the prompt says 0.
What version of iTerm2 are you using?
What OS version are you using?
Please provide any additional information below.
Patch attached (not sure if this is the best way to reset $?)