使用program时报 illegal option -- r

29 阅读1分钟

报错信息

sed: illegal option -- r
usage: sed script [-Ealn] [-i extension] [file ...]
       sed [-Ealn] [-i extension] [-e script] ... [-f script_file] ... [file ...]

报错原因

image

解法

编辑后需要重新启动Visual Studio Code即可

参考文献

How to fix "sed: illegal option -- r" error with every command on VS Code? [duplicate]