首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >为什么“.”在chown工作?

为什么“.”在chown工作?
EN

Unix & Linux用户
提问于 2015-11-24 18:06:03
回答 1查看 900关注 0票数 3

为什么GNU chown user.group能工作?文档更不用说所支持的语法了。背后有什么有趣的故事吗?

EN

回答 1

Unix & Linux用户

回答已采纳

发布于 2015-11-24 18:13:13

info chown对此很清楚:

代码语言:javascript
复制
Some older scripts may still use `.' in place of the `:' separator.
POSIX 1003.1-2001 (*note Standards conformance::) does not require
support for that, but for backward compatibility GNU `chown' supports
`.' so long as no ambiguity results. New scripts should avoid the use
of `.' because it is not portable, and because it has undesirable
results if the entire OWNER`.'GROUP happens to identify a user whose
name contains `.'.

对于GNU程序,它不仅值得检查man,而且还值得检查info页面,因为GNU厌恶手册页(来自man tar)。

票数 8
EN
页面原文内容由Unix & Linux提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://unix.stackexchange.com/questions/245210

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档