Skip to content

Exit code on wrong command in shell integration history #22942

Closed

Description

@andreamah

Testing #22926

I ran shell integration with the following lines:

print(sys.argv[0])
print(sys.argv[1])
print('uwu')

In the REPL, the second line fails, but the terminal history shows line 1 as having an exitCode of 1.

image image

Activity

  1. anthonykim1 commented on Feb 23, 2024

    @anthonykim1

    This is weird since the decoration seems to be correct, but the exit code is only showing once next to 'print(sys.argv[0]'? I think it may be the injection sequence, I'll take a look at this.

  2. anthonykim1 commented on Mar 10, 2024

    @anthonykim1

    this is now fixed

  3. locked as resolved and limited conversation to collaborators on Apr 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

area-replinfo-neededIssue requires more information from poster

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions