[BUG]

Resolved 💬 2 comments Opened Mar 15, 2026 by cheinan Closed Apr 13, 2026

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] I am using the latest version of Claude Code

What's Wrong?

I asked Claude code about a dotfile in a directory, but it ran a plain ls (without -a) and claimed the file didn't exist even though I explicitly named the existing dotfile.

What Should Happen?

When asked about a dotfile, the -a flag should be added to ls commands being run without having to be told so explicitly.

Error Messages/Logs

❯ What about .nmprc?

● There's no .npmrc file in the directory. Since the edge function uses Deno with npm: specifiers (e.g. npm:resend,
  npm:@supabase/supabase-js), no .npmrc is needed — Deno handles npm package resolution natively.

❯ In what directory are you looking?

● /redacted-dir/ — that's where ls showed only deno.json and index.ts.

❯ The file starts with a dot. ls will not show it.

● You're right. Let me check properly:

Steps to Reproduce

I'm unable to duplicate the problem. My attempts in independent claude code sessions with a skeleton example work correctly with -a being added to ls.

Claude Model

Sonnet (default)

Is this a regression?

I don't know

Last Working Version

_No response_

Claude Code Version

2.1.76 (Claude Code)

Platform

Anthropic API

Operating System

Ubuntu/Debian Linux

Terminal/Shell

Other

Additional Information

_No response_

View original on GitHub ↗

This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗