2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

macでVSCodeのterminalからコマンド実行した際に`sed: illegal option -- r`なるものが出力されて困る

2
Last updated at Posted at 2022-09-18

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であり該当していた

beforeのバージョン
スクリーンショット 2022-09-18 13.49.08.png

現時点の最新バージョン(v1.71.2)に更新(Code-->更新)すると解決した。

afterのバージョン
スクリーンショット 2022-09-18 13.52.48.png

参考

[MacOs][Bug][Terminal] sed: illegal option -- r before executing commands

2
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?