dotfiles bugabingas dorkfiles
owned by bugabinga
README Source History Refs Reviews Compare Notes Search Review guide docs(windows-filenames): document Git Bash handling
1e0cffb2b0c953798673f47185617a5724552253
Oliver Krylow <o.krylow@isp-insoft.de > · 3 Sep 2026
unsigned
Browse files Compare with HEAD
Changed files (1) Diff layout Auto Unified Split
pi/agent/skills/windows-filename-guidance/SKILL.md Modified +48 / −1 text lines
78 78 filesystem's rules, ACLs, locks, or corruption. Do not combine it with afilesystem's rules, ACLs, locks, or corruption. Do not combine it with a79 79 relative path.relative path.
83 + Git Bash/MSYS2 rewrites path-looking arguments passed to native Windows84 + executables. This can also affect shell program text passed as one argument,85 + such as a remote command containing `2>/dev/null`. Preserve literal POSIX text86 + at that boundary with the documented exclusion variable:89 + MSYS2_ARG_CONV_EXCL= '*' podman.exe machine ssh 'command 2>/dev/null' 92 + Do not assume `MSYS_NO_PATHCONV` covers every native executable.94 + Bash double quotes reduce a leading `\\` to `\`. Therefore95 + `"\\?\C:\absolute\path\NUL"` reaches a child process as the malformed96 + `\?\C:\absolute\path\NUL`. When invoking `cmd.exe` from Bash, preserve the97 + literal path and disable MSYS2 argument conversion:100 + MSYS2_ARG_CONV_EXCL= '*' cmd.exe /d /c del '\\?\C:\absolute\path\NUL' 103 + The `cmd` examples below are native `cmd.exe` syntax. Do not paste their quoted104 + paths unchanged into a Bash command.81 106 ## Delete Problem Entries ## Delete Problem Entries 83 108 Show the exact target and obtain explicit confirmation first. Reject wildcards,Show the exact target and obtain explicit confirmation first. Reject wildcards,84 109 relative paths, drive/share roots, and ambiguous targets.relative paths, drive/share roots, and ambiguous targets.111 + If Git Bash created the entry and can enumerate its exact absolute POSIX path,112 + prefer removing it through that same layer:118 + File through native `cmd.exe`:89 121 cmd.exe /d /c del "\\?\C:\absolute\path\NUL"cmd.exe /d /c del "\\?\C:\absolute\path\NUL"111 143 Preserve exact spelling, extension, spaces, and periods. Enumerate the parentPreserve exact spelling, extension, spaces, and periods. Enumerate the parent112 144 again; report success only when the literal entry is absent.again; report success only when the literal entry is absent.
146 + `git status` is not direct filesystem verification. If deletion succeeds and147 + parent enumeration no longer contains the literal entry, but Git still reports148 + it, bypass its filesystem monitor and untracked cache once:151 + git -c core.fsmonitor=false -c core.untrackedCache=false status --short154 + If that removes the report and the repository uses the built-in monitor,155 + restart it. Do not issue further deletion commands solely because cached Git156 + status still names the entry.114 158 If the extended path still fails, use `dir /a /x` on the parent. Verify the 8.3If the extended path still fails, use `dir /a /x` on the parent. Verify the 8.3115 159 short name maps to the exact target before proposing deletion through that name.short name maps to the exact target before proposing deletion through that name.129 173 ## Sources ## Sources
175 + - [MSYS2: filesystem paths and argument conversion](https://www.msys2.org/docs/filesystem-paths/)176 + - [GNU Bash: double-quote backslash handling](https://www.gnu.org/software/bash/manual/html_node/Double-Quotes.html)177 + - [Git: built-in filesystem monitor](https://git-scm.com/docs/git-fsmonitor--daemon)131 178 - [Super User: removing a file named NUL](https://superuser.com/questions/282194/how-do-i-remove-a-file-named-nul-on-windows)- [Super User: removing a file named NUL](https://superuser.com/questions/282194/how-do-i-remove-a-file-named-nul-on-windows)132 179 - [Microsoft KB 320081: undeletable NTFS entries](https://learn.microsoft.com/en-us/troubleshoot/windows-server/backup-and-storage/cannot-delete-file-folder-on-ntfs-file-system)- [Microsoft KB 320081: undeletable NTFS entries](https://learn.microsoft.com/en-us/troubleshoot/windows-server/backup-and-storage/cannot-delete-file-folder-on-ntfs-file-system)133 180 - [Microsoft: Naming Files, Paths, and Namespaces](https://learn.microsoft.com/en-us/windows/win32/fileio/naming-a-file)- [Microsoft: Naming Files, Paths, and Namespaces](https://learn.microsoft.com/en-us/windows/win32/fileio/naming-a-file)