sed: illegal option -- rなるものが出力されて困る
MacでVSCodeのターミナルを開くと、以下のようなものがコマンド実行の都度表示される
デバッグ時にログが混ざってとても見づらい
$ pwd
sed: illegal option -- r
usage: sed script [-Ealn] [-i extension] [file ...]
sed [-Ealn] [-i extension] [-e script] ... [-f script_file] ... [file ...]
/Users/seigo/Desktop/python/
よくみたら以下でissueが上がっており、v1.71.1では解決している様子
[MacOs][Bug][Terminal] sed: illegal option -- r before executing commands
@mostafa-yasen a fix should come in v1.71.1 within the week
Tyriar commented 12 days ago
自分のバージョンを確認するとv1.71.0であり該当していた
現時点の最新バージョン(v1.71.2)に更新(Code-->更新)すると解決した。
参考
[MacOs][Bug][Terminal] sed: illegal option -- r before executing commands

