[Bug] Bash Glob Expansion Fails with 'No such file or directory' Error

Status Closed — not planned
Maintainer reply None cached
Activity 9 comments · opened Sep 10, 2025 · closed Jan 9, 2026

Bug Description
I keep seeing: "ls: cannot access 'glob': No such file or directory" in Bash commands like:

● Bash(ls -la /home/matthew/dev/ce/infra/bin/lib/cefs/*.py | head -20)
  ⎿  ls: cannot access 'glob': No such file or directory
  ⎿  Interrupted by user

(I interrupted claude to file this issue. But I've seen it a bunch of times)

Environment Info

  • Platform: linux
  • Terminal: gnome-terminal
  • Version: 1.0.110
  • Feedback ID: e9af1f30-e1cb-443e-bebf-3f8852c16382

Errors

[{"error":"Error: Language not supported while highlighting code, falling back to markdown: \n    at nH (/$bunfs/root/claude:1640:1192)\n    at map (native:1:11)\n    at L7 (/$bunfs/root/claude:1640:905)\n    at HSW (/$bunfs/root/claude:3603:13820)\n    at gq (/$bunfs/root/claude:47:19415)\n    at _u (/$bunfs/root/claude:49:42805)\n    at p5 (/$bunfs/root/claude:49:38347)\n    at fx (/$bunfs/root/claude:49:38275)\n    at oq (/$bunfs/root/claude:49:38129)\n    at VF (/$bunfs/root/claude:49:35208)","timestamp":"2025-09-10T21:36:47.575Z"},{"error":"Error: Language not supported while highlighting code, falling back to markdown: \n    at nH (/$bunfs/root/claude:1640:1192)\n    at map (native:1:11)\n    at L7 (/$bunfs/root/claude:1640:905)\n    at HSW (/$bunfs/root/claude:3603:13820)\n    at gq (/$bunfs/root/claude:47:19415)\n    at QP (/$bunfs/root/claude:49:3229)\n    at p5 (/$bunfs/root/claude:49:38347)\n    at fx (/$bunfs/root/claude:49:38275)\n    at oq (/$bunfs/root/claude:49:38129)\n    at VF (/$bunfs/root/claude:49:35208)","timestamp":"2025-09-10T21:36:47.841Z"},{"error":"Error: Language not supported while highlighting code, falling back to markdown: \n    at nH (/$bunfs/root/claude:1640:1192)\n    at map (native:1:11)\n    at L7 (/$bunfs/root/claude:1640:905)\n    at sE0 (/$bunfs/root/claude:1784:40465)\n    at gq (/$bunfs/root/claude:47:19415)\n    at _u (/$bunfs/root/claude:49:42805)\n    at p5 (/$bunfs/root/claude:49:38347)\n    at fx (/$bunfs/root/claude:49:38275)\n    at oq (/$bunfs/root/claude:49:38129)\n    at VF (/$bunfs/root/claude:49:35208)","timestamp":"2025-09-10T21:37:32.944Z"},{"error":"Error: Language not supported while highlighting code, falling back to markdown: \n    at nH (/$bunfs/root/claude:1640:1192)\n    at map (native:1:11)\n    at L7 (/$bunfs/root/claude:1640:905)\n    at HSW (/$bunfs/root/claude:3603:13820)\n    at gq (/$bunfs/root/claude:47:19415)\n    at _u (/$bunfs/root/claude:49:42805)\n    at p5 (/$bunfs/root/claude:49:38347)\n    at fx (/$bunfs/root/claude:49:38275)\n    at oq (/$bunfs/root/claude:49:38129)\n    at VF (/$bunfs/root/claude:49:35208)","timestamp":"2025-09-10T21:39:19.287Z"},{"error":"Error: Language not supported while highlighting code, falling back to markdown: \n    at nH (/$bunfs/root/claude:1640:1192)\n    at map (native:1:11)\n    at L7 (/$bunfs/root/claude:1640:905)\n    at HSW (/$bunfs/root/claude:3603:13820)\n    at gq (/$bunfs/root/claude:47:19415)\n    at QP (/$bunfs/root/claude:49:3229)\n    at p5 (/$bunfs/root/claude:49:38347)\n    at fx (/$bunfs/root/claude:49:38275)\n    at oq (/$bunfs/root/claude:49:38129)\n    at VF (/$bunfs/root/claude:49:35208)","timestamp":"2025-09-10T21:39:19.595Z"},{"error":"Error: Language not supported while highlighting code, falling back to markdown: \n    at nH (/$bunfs/root/claude:1640:1192)\n    at map (native:1:11)\n    at L7 (/$bunfs/root/claude:1640:905)\n    at sE0 (/$bunfs/root/claude:1784:40465)\n    at gq (/$bunfs/root/claude:47:19415)\n    at _u (/$bunfs/root/claude:49:42805)\n    at p5 (/$bunfs/root/claude:49:38347)\n    at fx (/$bunfs/root/claude:49:38275)\n    at oq (/$bunfs/root/claude:49:38129)\n    at VF (/$bunfs/root/claude:49:35208)","timestamp":"2025-09-10T21:41:08.024Z"},{"error":"Error: Request was aborted.\n    at new Q5 (unknown:1:28)\n    at new xY (/$bunfs/root/claude:831:1962)\n    at new oQ (/$bunfs/root/claude:831:2750)\n    at _createMessage (/$bunfs/root/claude:839:7955)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-09-10T21:42:30.266Z"},{"error":"SyntaxError: JSON Parse error: Unable to parse JSON string\n    at <parse> (:0)\n    at parse (unknown)\n    at <anonymous> (/$bunfs/root/claude:582:9937)\n    at W (/$bunfs/root/claude:533:13280)\n    at VfG (/$bunfs/root/claude:1000:1920)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-09-10T21:44:56.960Z"},{"error":"Error: Request was aborted.\n    at new Q5 (unknown:1:28)\n    at new xY (/$bunfs/root/claude:831:1962)\n    at new oQ (/$bunfs/root/claude:831:2750

Note: Error logs were truncated.

View original on GitHub ↗

9 Comments

github-actions[bot] · 1 year ago

Found 2 possible duplicate issues:

  1. https://github.com/anthropics/claude-code/issues/5811
  2. https://github.com/anthropics/claude-code/issues/5664

This issue will be automatically closed as a duplicate in 3 days.

  • If your issue is a duplicate, please close it and 👍 the existing issue instead
  • To prevent auto-closure, add a comment or 👎 this comment

🤖 Generated with Claude Code

mattgodbolt · 1 year ago

Duplicate of #5664 though this affects more than just that directory.

mattgodbolt · 1 year ago

@bcherny I'm not sure what happened but the issue #5664 that is now locked (but reopened) I'd like to +1 to. But it's locked. So I'm reopening this.

solace-rcampbell · 1 year ago

It seems that #5664 was closed as a duplicate of #5811, but #5811 was closed as a duplicate of #5644!

That's an interesting way of avoiding a problem.

Anyway, there's a MUCH easier repo of this issue.

! echo * | cat
  ⎿  glob

If you just type ! and then echo * | cat, it will output the word glob instead of passing the * to bash to expand.

If you run ! bash -c "echo * | cat" instead, the * gets properly expanded. You can see that this is somehow connected to running directly inside claude.

This causes claude to struggle to find files in a codebase, and increases the cost for people to use per-token billing (because it causes more model requests).

Downchuck · 1 year ago

yeah this issue is causing a lot of extra calls all the time since it rolled out

github-actions[bot] · 10 months ago

This issue has been inactive for 30 days. If the issue is still occurring, please comment to let us know. Otherwise, this issue will be automatically closed in 30 days for housekeeping purposes.

solace-rcampbell · 10 months ago

I can't reproduce this anymore in v2.0.55

github-actions[bot] · 9 months ago

This issue has been automatically closed due to 60 days of inactivity. If you're still experiencing this issue, please open a new issue with updated information.

github-actions[bot] · 9 months ago

This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.