chownに「.」があるのはなぜですか?

chownに「.」があるのはなぜですか?

GNUはなぜchown user.group動作しますか?ドキュメントにはサポートされている構文は記載されていません。感動的なビハインドストーリーはありますか?

ベストアンサー1

info chown非常に明確な:

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)。

おすすめ記事