我注意到,Unix实用程序格式化的手册页和其他文档经常使用双反引号,``
然后用双单引号引起''
来的单引号而不是双引号字符"
。单引号被类似地替换。为什么是这样?
以下是几个示例,来自手册页grep
:
To find all occurrences of the pattern `.Pp' at the beginning of a line:
$ grep '^\.Pp' myfile
The apostrophes ensure the entire expression is evaluated by grep instead
of by the user's shell. The caret `^' matches the null string at the
beginning of a line, and the `\' escapes the `.', which would otherwise match
any character.
The grep utility is compliant with the IEEE Std 1003.1-2008 (``POSIX.1'')
specification.
`...'
,使其脱颖而出(即使在评论中也是如此)。