为什么 make 在目标名称周围使用反引号和单引号?

发布于 2025-01-16 03:41:27 字数 467 浏览 3 评论 0原文

我发现在所有 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

濫情▎り 2025-01-23 03:41:27

我猜这是字体以不同方式显示时的遗留问题。对于供人类阅读的计算机文本,过去(在许多系统上)使用反引号/引号会产生类似于英语通常排版方式的输出。

考虑例如: 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 :

enter image description here

For other information, see for example:

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文