Chinaunix

标题: 两个破折号的开关和一个破折号的区别 [打印本页]

作者: Michaelgs    时间: 2006-05-17 20:59
标题: 两个破折号的开关和一个破折号的区别
使用linux也有一段时间了, 但一直不明白为什么有的命令开关是一个破折号的, 而有的是两个破折号的, 他们有什么区别, 或者说规律吗?
作者: cuci    时间: 2006-05-17 22:03
有一天,偶男人(man)了一下awk,发现:
POSIX  options start with a single "-", while long options start with "--".  Long options are provided for both   GNU-specific features and for POSIX-mandated features.




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2