Unverified50% confidenceFactExact time
basename also works on directory paths; passing basename directory1/directory2/directory3 returns directory3.
1
Sources
50%
Confidence
Long-term
Relevance
9/16/2026
First Seen
Sources
Related Entities
Related Claims
UnverifiedRunning basename directly without any arguments returns an error; it must receive a file or directory path as an argument.63% similarUnverifiedWhen using basename in a batch processing loop, variables must be wrapped in double quotes if the path or filename contains spaces; otherwise, the shell will misinterpret spaces as argument separators, causing the script to fail.56% similarUnverifiedRules under the .claude/rules directory without a Path configuration are loaded unconditionally, while rules with a Path configuration are only loaded when operating on matching files.53% similar
Cite This Claim
Stable URI
https://kongchang.com/claim/925268API
curl https://kongchang.com/api/v1/knowledge/claims/925268MCP
get_claim(id=925268)