我非常喜欢 Snow Leopard 上的新 Menlo 字体。我尝试将它复制到我的 Windows 机器上,但 Windows 不喜欢这种格式。有谁知道是否有任何合法的方式在 Windows 上获取 Menlo?
我试图找到一种标准的 POSIX 方式来将一个文件的权限复制到另一个文件。在 GNU 系统上,这很容易:
[alexmchale@bullfrog ~]$ ls -l hardcopy.*
-rw-r--r-- 1 alexmchale users 2972 Jul 8 20:40 hardcopy.1
---------- 1 alexmchale users 2824 May 14 13:45 hardcopy.4
[alexmchale@bullfrog ~]$ chmod --reference=hardcopy.1 hardcopy.4
[alexmchale@bullfrog ~]$ ls -l hardcopy.*
-rw-r--r-- 1 alexmchale users 2972 Jul 8 20:40 hardcopy.1
-rw-r--r-- 1 alexmchale users 2824 May 14 13:45 hardcopy.4
Run Code Online (Sandbox Code Playgroud)
不幸的是,chmod 的 --reference 标志是一个非标准选项。所以这是出于我的目的。我更喜欢它是单线的,但这不是必需的。最终,它确实需要采用 POSIX sh 语法。