
我運行zip -r9 -S --symlinks ../output.zip .
並得到錯誤zip error: Invalid command arguments (short option 'S' not supported)
。zip --version
告訴我
Copyright (c) 1990-2008 Info-ZIP - Type 'zip "-L"' for software license.
This is Zip 3.0 (July 5th 2008), by Info-ZIP.
我需要在兩個地方執行此命令:在lambci/lambda
Windows 上的 Docker () 中,以及在 AWS 上使用的實際 Linux 建置伺服器上。
為什麼zip說不支援switch?我可以用 tar 做同樣的事情嗎?我仍然需要命令來產生“正常”.zip,而不是 gzip 或 bzip 等。