Nushell Command Execution Fails with Unexpected `< /dev/null` Redirection
Resolved 💬 3 comments Opened Jul 27, 2025 by tennox Closed Aug 8, 2025
Bug Description
When claude-code tries to run nushell code via nu -c 'echo foo', the cli seems to inject a < /dev/null in there, which is not valid.
● Bash(nu -c 'ls | where type == file | get name')…
⎿ Error: nu::shell::io::not_found
x Not found
,-[source:1:5]
1 | ls < /dev/null | where type == file | get name
: |
: `-- Not found
`----
help: '/home/manu/dev/stuff/claude-test/<' does not exist
● Bash(nu -c 'echo "hello world" | str upcase')…
⎿ ╭───┬─────────────╮
│ 0 │ HELLO WORLD │
│ 1 │ < │
│ 2 │ /DEV/NULL │
╰───┴─────────────╯
Environment Info
- Platform: linux
- Terminal: alacritty
- Version: 1.0.0
- Feedback ID: b2b7ac76-8c8a-4a15-95cb-52321c28ffb3
Errors
[{"error":"Error: ENOENT: no such file or directory, scandir '/home/manu/.claude/ide'\n at Module.readdirSync (node:fs:1507:26)\n at Object.readdirSync (file:///nix/store/z3v5vavhr2g1gdjfx6xff59pbndynfzk-claude-code-1.0.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:540:1519)\n at zD0 (file:///nix/store/z3v5vavhr2g1gdjfx6xff59pbndynfzk-claude-code-1.0.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1315:16584)\n at Ga (file:///nix/store/z3v5vavhr2g1gdjfx6xff59pbndynfzk-claude-code-1.0.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1316:2580)\n at file:///nix/store/z3v5vavhr2g1gdjfx6xff59pbndynfzk-claude-code-1.0.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:2466:11384\n at f7 (file:///nix/store/z3v5vavhr2g1gdjfx6xff59pbndynfzk-claude-code-1.0.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:150:21374)\n at gZ (file:///nix/store/z3v5vavhr2g1gdjfx6xff59pbndynfzk-claude-code-1.0.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:150:40861)\n at zW (file:///nix/store/z3v5vavhr2g1gdjfx6xff59pbndynfzk-claude-code-1.0.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:150:34915)\n at W5 (file:///nix/store/z3v5vavhr2g1gdjfx6xff59pbndynfzk-claude-code-1.0.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:148:4822)\n at $8 (file:///nix/store/z3v5vavhr2g1gdjfx6xff59pbndynfzk-claude-code-1.0.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:150:32232)","timestamp":"2025-07-27T13:53:50.914Z"},{"error":"Error: ENOENT: no such file or directory, scandir '/home/manu/.claude/ide'\n at Module.readdirSync (node:fs:1507:26)\n at Object.readdirSync (file:///nix/store/z3v5vavhr2g1gdjfx6xff59pbndynfzk-claude-code-1.0.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:540:1519)\n at zD0 (file:///nix/store/z3v5vavhr2g1gdjfx6xff59pbndynfzk-claude-code-1.0.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1315:16584)\n at eP4 (file:///nix/store/z3v5vavhr2g1gdjfx6xff59pbndynfzk-claude-code-1.0.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1316:555)\n at XD0 (file:///nix/store/z3v5vavhr2g1gdjfx6xff59pbndynfzk-claude-code-1.0.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1316:2305)\n at LD0 (file:///nix/store/z3v5vavhr2g1gdjfx6xff59pbndynfzk-claude-code-1.0.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1316:5711)\n at file:///nix/store/z3v5vavhr2g1gdjfx6xff59pbndynfzk-claude-code-1.0.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:2496:2017\n at f7 (file:///nix/store/z3v5vavhr2g1gdjfx6xff59pbndynfzk-claude-code-1.0.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:150:21374)\n at gZ (file:///nix/store/z3v5vavhr2g1gdjfx6xff59pbndynfzk-claude-code-1.0.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:150:40861)\n at zW (file:///nix/store/z3v5vavhr2g1gdjfx6xff59pbndynfzk-claude-code-1.0.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:150:34915)","timestamp":"2025-07-27T13:53:50.917Z"},{"error":"Error: ENOENT: no such file or directory, scandir '/home/manu/.claude/ide'\n at Module.readdirSync (node:fs:1507:26)\n at Object.readdirSync (file:///nix/store/z3v5vavhr2g1gdjfx6xff59pbndynfzk-claude-code-1.0.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:540:1519)\n at zD0 (file:///nix/store/z3v5vavhr2g1gdjfx6xff59pbndynfzk-claude-code-1.0.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1315:16584)\n at Ga (file:///nix/store/z3v5vavhr2g1gdjfx6xff59pbndynfzk-claude-code-1.0.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1316:2580)\n at XD0 (file:///nix/store/z3v5vavhr2g1gdjfx6xff59pbndynfzk-claude-code-1.0.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1316:2372)","timestamp":"2025-07-27T13:53:50.953Z"},{"error":"Error: ENOENT: no such file or directory, scandir '/home/manu/.claude/ide'\n at Module.readdirSync (node:fs:1507:26)\n at Object.readdirSync (file:///nix/store/z3v5vavhr2g1gdjfx6xff59pbndynfzk-claude-code-1.0.0/lib/node_modules/@anthropic-ai/c
Note: Error logs were truncated.
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗