カール7.87.0は--outputパラメータを無視します。

カール7.87.0は--outputパラメータを無視します。

私が電話するとき

curl --output quarto.deb -L $(curl https://quarto.org/docs/download/_prerelease.json | grep -oP "(?<=\"download_url\":\s\")https.*${ARCH}\.deb")

出力は次のとおりです

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 26098  100 26098    0     0  33576      0 --:--:-- --:--:-- --:--:-- 33588
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100 84.5M  100 84.5M    0     0   9.9M      0  0:00:08  0:00:08 --:--:-- 11.0M
Warning: Binary output can mess up your terminal. Use "--output -" to tell 
Warning: curl to output it to your terminal anyway, or consider "--output 
Warning: <FILE>" to save to a file.

カールがこのパラメータを無視するのはなぜですか--output? (大文字のO)を使用すると、-O同じ結果が得られます。

数ヶ月前に同じコマンドを使用したことを思い出しましたが、この問題は発生しませんでした。

ベストアンサー1

curl https://quarto.org/docs/download/_prerelease.json | grep -oP "(?<=\"download_url\":\s\")https.*${ARCH}\.deb"

2つのURLが返され、問題が発生します。

おすすめ記事