Skip to content

Instantly share code, notes, and snippets.

@paul-d-ray
Created June 20, 2025 05:22
Show Gist options
  • Save paul-d-ray/b378241f384d3c1d4a02d52fd6f9a3bf to your computer and use it in GitHub Desktop.
Save paul-d-ray/b378241f384d3c1d4a02d52fd6f9a3bf to your computer and use it in GitHub Desktop.
Nushell LS with a path vs LS without a Path

LS and Glob patterns

  • In Nushell on Windows, the LS command's behavior differs due to how it handles hidden system directories like "System Volume Information".

  • Without a path (ls): Uses a wildcard pattern (*) with glob matching, which filters out "System Volume Information" because it has the FILE_ATTRIBUTE_HIDDEN attribute, per Windows-specific hidden file detection logic.

  • With a path (ls C:): Directly reads directory contents, bypassing glob filtering, so "System Volume Information" is shown if accessible.

DeepWiki for Nushell

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment