Skip to content

Instantly share code, notes, and snippets.

@cablehead
Created May 14, 2024 01:44
Show Gist options
  • Save cablehead/f3d2608a1629e607c2d75290829354f7 to your computer and use it in GitHub Desktop.
Save cablehead/f3d2608a1629e607c2d75290829354f7 to your computer and use it in GitHub Desktop.
~/.s/sessions/03B982FI3LF406403X7R7HD9Z/nushell: "foo" | example echo
foo
~/.s/sessions/03B982FI3LF406403X7R7HD9Z/nushell: seq 1 5 | each { |n| sleep 1sec; $n } | example echo | first
1
Error: × Main thread panicked.
├─▶ at crates/nu-protocol/src/engine/stack.rs:88:13
╰─▶ More than one stack reference remaining!
0: 0x106fc4e54 - rust_begin_unwind
at /rustc/25ef9e3d85d934b27d9dada2f9dd52b1dc63bb04/library/std/src/panicking.rs:647
1: 0x10704945c - core::panicking::panic_fmt::h1cb43b60f5788132
at /rustc/25ef9e3d85d934b27d9dada2f9dd52b1dc63bb04/library/core/src/panicking.rs:72
2: 0x1068d2efc - nu_protocol::engine::stack::Stack::unwrap_unique::{{closure}}::h1e9cac44d1295843
at /Users/andy/.s/sessions/03B982FI3LF406403X7R7HD9Z/nushell/crates/nu-protocol/src/engine/stack.rs:88
3: 0x10669662c - core::result::Result<T,E>::unwrap_or_else::h200225fa7b4254c9
at /rustc/25ef9e3d85d934b27d9dada2f9dd52b1dc63bb04/library/core/src/result.rs:1426
4: 0x106909034 - nu_protocol::engine::stack::Stack::unwrap_unique::ha83fc3148971605b
at /Users/andy/.s/sessions/03B982FI3LF406403X7R7HD9Z/nushell/crates/nu-protocol/src/engine/stack.rs:85
5: 0x1069092f0 - nu_protocol::engine::stack::Stack::with_changes_from_child::hf5ac6287a899e16b
at /Users/andy/.s/sessions/03B982FI3LF406403X7R7HD9Z/nushell/crates/nu-protocol/src/engine/stack.rs:123
6: 0x10593eb00 - nu_cli::repl::evaluate_repl::h77e4ab1d5562fa2a
at /Users/andy/.s/sessions/03B982FI3LF406403X7R7HD9Z/nushell/crates/nu-cli/src/repl.rs:202
7: 0x1045fe150 - nu::run::run_repl::h3cc8c88514558ed5
at /Users/andy/.s/sessions/03B982FI3LF406403X7R7HD9Z/nushell/src/run.rs:278
8: 0x10460e15c - nu::main::h5a4ad456314ce8fb
at /Users/andy/.s/sessions/03B982FI3LF406403X7R7HD9Z/nushell/src/main.rs:475
9: 0x1045dabbc - core::ops::function::FnOnce::call_once::h2583743732fa6ac6
at /rustc/25ef9e3d85d934b27d9dada2f9dd52b1dc63bb04/library/core/src/ops/function.rs:250
help: set the `RUST_BACKTRACE=1` environment variable to display a backtrace.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment