Unverified50% confidenceFactExact time
The parameter expansion syntax ${path##*/} built into Bash and Zsh can achieve the same effect as basename and eliminates subprocess overhead in loop scenarios.
1
Sources
50%
Confidence
Long-term
Relevance
9/16/2026
First Seen
Sources
Related Entities
Related Claims
UnverifiedWhen 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.68% similarUnverifiedOn Unix/Mac systems, NVM is implemented through a shell function that modifies the PATH variable in the current shell session62% similarUnverified写入环境变量后必须执行 source ~/.bashrc 或 source ~/.zshrc 重新加载配置才能生效,否则新终端窗口不会包含手动设置的变量56% similarUnverifiedz.infer 依赖 TypeScript 的条件类型与内置 infer 关键字实现,整个过程完全发生在编译阶段,不产生额外运行时代码56% similar
Cite This Claim
Stable URI
https://kongchang.com/claim/925266API
curl https://kongchang.com/api/v1/knowledge/claims/925266MCP
get_claim(id=925266)