Skip to content

Conversation

@Thalley
Copy link
Contributor

@Thalley Thalley commented Nov 14, 2024

The ctx_shell was only used a single place and in a function that already has a sh that would be better to use.

The ctx_shell was only used a single place and in a function
that already has a `sh` that would be better to use.

Signed-off-by: Emil Gydesen <[email protected]>
Copy link
Member

@jhedberg jhedberg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Thalley why a draft? This looks like a trivial change.

@Thalley
Copy link
Contributor Author

Thalley commented Nov 14, 2024

@Thalley why a draft? This looks like a trivial change.

I always keep PRs in draft until they reach their first CI pass :)

@Thalley Thalley marked this pull request as ready for review November 14, 2024 12:28
@zephyrbot zephyrbot added the area: USB Universal Serial Bus label Nov 14, 2024
@Thalley
Copy link
Contributor Author

Thalley commented Nov 19, 2024

@jfischer-no please review :)

Copy link
Contributor

@jfischer-no jfischer-no left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

okay, although I have to bring it back soon.

@Thalley
Copy link
Contributor Author

Thalley commented Nov 26, 2024

okay, although I have to bring it back soon.

:(
The concept of a ctx_shell is pretty terrible, as that is not how the shell really works. There can be multiple shells, and the shell executing the command may not be the shell receiving the result. See #70945 for a bit more.

In BT we have #74652 as a step forward to eliminating it

@nashif nashif merged commit c7ce861 into zephyrproject-rtos:main Nov 26, 2024
27 checks passed
@Thalley Thalley deleted the usb_shell_ctx_shell branch November 26, 2024 21:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: USB Universal Serial Bus

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants