为什么 make 在目标名称周围使用反引号和单引号?
我发现在所有 make
警告/错误消息中,它使用单反引号,然后使用单引号突出显示用户输入。
例如,未定义的 makefile 名称的错误消息类似于
Makefile `xxx' was not find.
起初我以为这是一个拼写错误,但在我看来它适用于所有消息。
https://www.gnu.org/software/make/ Manual/html_node/Error-Messages.html
它与现代开发不同,在突出显示文本周围使用单/双引号,例如 Makefile 'xxx' 未找到。
有没有人知道背后的原因 它?
I found in all make
warning / error messages, it uses a single back quote but then a single quote to highlight the user input.
For example, the error message of the undefined makefile name is like
Makefile `xxx' was not found.
At first I thought it was a typo, but it seems to me it is intended for all messages.
https://www.gnu.org/software/make/manual/html_node/Error-Messages.html
It is distinct from the modern development to use both single / double quote around the highlight text, e.g. Makefile 'xxx' was not found.
Does anyone know the reason behind it?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我猜这是字体以不同方式显示时的遗留问题。对于供人类阅读的计算机文本,过去(在许多系统上)使用反引号/引号会产生类似于英语通常排版方式的输出。
考虑例如: https://data.historicaltexts.jisc.ac.uk/view?pubId=bl-001973110&pageId=bl-001973110-660536-22 :
有关其他信息,请参阅示例:
I would guess it is a holdover from when fonts were displayed differently. For computer text that was intended to be read by humans, it used to be that (on many systems) using backquote/quote would produce output that resembles the way that English was normally typeset.
Consider for example: https://data.historicaltexts.jisc.ac.uk/view?pubId=bl-001973110&pageId=bl-001973110-660536-22 :
For other information, see for example: