Skip to content

How can I break out of an error-redirected cmd? #6219

Closed

Description

@jjpe

Suppose I have:

do -c { my-command }

A similar story holds for do -i.

What I'm noticing is that whenever such a do cmd is executed, nushell just gets stuck.
CTRL-C has no effect either, all I've been able to do so far is restart my entire terminal, or at least nushell.

Assuming that that isn't a bug, how can I break out of this at will?

Activity

  1. WindSoilder commented on Aug 3, 2022

    @WindSoilder
    Contributor

    Would you please show what's your my-command? I've tried some commands and can't reproduce your issue

  2. jjpe commented on Aug 3, 2022

    @jjpe
    Author

    Basically I'm trying to wrap cargo install <CRATE>+ in it.
    The reason for that is that cargo install writes its regular output to stderr rather than stdout, so if I want to incercept its output I don't have much of a choice.

  3. WindSoilder commented on Aug 5, 2022

    @WindSoilder
    Contributor

    I can't reproduce your issue :-( And I can use CTRL-C to break the operation..

  4. jjpe commented on Aug 5, 2022

    @jjpe
    Author

    In that case it might be because I'm running nushell inside of Zellij, which in turn runs in Alacritty (which nushell might not expect; I've been working on an assumption of "there are standards, it'll all play nice").

    I'm trying to build a stack out of those components, for a superior UX relative to more legacy term/shell combo's eg Konsole and zsh in my case.
    It's possible that the C-c gets intercepted along the way somewhere. But if that's the case, debugging this will not be so easy, as it will essentially have turned this issue into an Integration issue.

  5. added
    A:external-commands
    on Sep 29, 2022
  6. WindSoilder commented on Oct 12, 2022

    @WindSoilder
    Contributor

    Hi, @jjpe would you please check if it still hold under the latest main?

  7. WindSoilder commented on Oct 17, 2022

    @WindSoilder
    Contributor

    I think this issue can be closed :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A:external-commands

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions