nushell: A hang occurs when typing `source /dev/stdin`
Describe the bug
Nushel hangs when trying to type source /dev/stdin.
To Reproduce
- Open Nushell
- Try to type
source /dev/stdin - It hangs when pressing the last <kbd>N</kbd> key and the letter
nis not displayed
Expected behavior It should not hang.
Screenshots

Configuration (please complete the following information):
Run version | pivot and paste the output to show OS, features, etc.
> version | pivot
# Column0 Column1
────────────────────────────────────────────────────────────────────────────────────────────────────────────────
0 version 0.33.0
1 build_os linux-x86_64
2 rust_version rustc 1.53.0
3 cargo_version cargo 1.53.0
4 pkg_version 0.33.0
5 build_time 2021-07-20 18:48:12
6 build_rust_channel release
7 features clipboard-cli, ctrlc, default, ptree, rustyline, term, trash, uuid, which, zip
8 installed_plugins binaryview, chart bar, chart line, fetch, from bson, from sqlite, inc, match, post,
ps, query json, s3, selector, start, sys, textview, to bson, to sqlite, tree, xpath
Add any other context about the problem here.
About this issue
- Original URL
- State: open
- Created 3 years ago
- Reactions: 2
- Comments: 20 (9 by maintainers)
I believe it’s nushell trying to parse, not only the command line, but the files your typing on the command line, as you’re typing. i could be wrong though.
I just run into an issue that looks similar but unrelated to
dev/stdin.For me it happens when I target the file
~/.cargo/bin/nu_plugin_netlikeIt hangs when I type the last character (
t) and the character is not shown anymore.When I start with
and try to prepend it with
registerit hangs when I enter therIt also hangs with
but in this case <kbd>Ctrl</kbd>+<kbd>c</kbd> ends the command and I get the cursor back.
Most other plugins don’t cause this issue (
nu_plugin_query,nu_plugin_gstat,nu_plugin_plist,nu_plugin_plot).register nu_plugin_from_parquetalso hangs though.Same behavior in Kitty and Gnome Terminal