liuyanjun0826
V2EX  ›  macOS

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

  •  
  •   liuyanjun0826 · Apr 4, 2016 · 2273 views
    This topic created in 3703 days ago, the information mentioned may be changed or developed.
    codesign --display --verbose=4 /Applications/QQ.app
    codesign --display --entitlements - /Applications/QQ.app
    为什么前面的命令路径前没有-后面的命令路径有-
    4 replies    2016-04-04 03:03:56 +08:00
    UnisandK
        1
    UnisandK  
       Apr 4, 2016
    和 wget -O - 一样吧,作为--entitlements 参数指定的路径,把权限列表定向到标准输出了
    liuyanjun0826
        2
    liuyanjun0826  
    OP
       Apr 4, 2016
    @UnisandK 为什么第一个没加-第二个加了呢
    fatestigma
        3
    fatestigma  
       Apr 4, 2016   ❤️ 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
       Apr 4, 2016
    @fatestigma 果然在文档中有信息
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3195 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 78ms · UTC 14:07 · PVG 22:07 · LAX 07:07 · JFK 10:07
    ♥ Do have faith in what you're doing.