V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
liuyanjun0826
V2EX  ›  macOS

显示 App 沙盒命令为什么要在路径前面加-

  •  
  •   liuyanjun0826 · 2016-04-04 01:29:32 +08:00 · 1797 次点击
    这是一个创建于 2957 天前的主题,其中的信息可能已经有所发展或是发生改变。
    codesign --display --verbose=4 /Applications/QQ.app
    codesign --display --entitlements - /Applications/QQ.app
    为什么前面的命令路径前没有-后面的命令路径有-
    4 条回复    2016-04-04 03:03:56 +08:00
    UnisandK
        1
    UnisandK  
       2016-04-04 01:38:07 +08:00
    和 wget -O - 一样吧,作为--entitlements 参数指定的路径,把权限列表定向到标准输出了
    liuyanjun0826
        2
    liuyanjun0826  
    OP
       2016-04-04 01:53:05 +08:00
    @UnisandK 为什么第一个没加-第二个加了呢
    fatestigma
        3
    fatestigma  
       2016-04-04 02:39:29 +08:00   ❤️ 1
    @liuyanjun0826 这个地方加 `-` 的主要原因是 `--entitlements ` 参数的问题,和命令以及路径没有关系,具体看文档。
    文档截取部分内容:
    --entitlements path
    When displaying a signature, extract any entitlement data from
    the signature and write it to the path given. Use "-" to write to
    standard output.
    liuyanjun0826
        4
    liuyanjun0826  
    OP
       2016-04-04 03:03:56 +08:00
    @fatestigma 果然在文档中有信息
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3044 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 00:27 · PVG 08:27 · LAX 17:27 · JFK 20:27
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.