Bashでgnu_errfmtオプションを使用する

Bashでgnu_errfmtオプションを使用する

私は読んだGNU/Bash ドキュメントただし、実際のユースケースを理解または見つけることはできません。

gnu_errfmt

設定すると、シェルエラーメッセージは標準のGNUエラーメッセージ形式で記録されます。

私が試したとき:

└─$ shopt -u gnu_errfmt
└─$ no_command
-bash: no_command: command not found
└─$ shopt -s gnu_errfmt
└─$ no_command
-bash: no_command: command not found

実際の使用目的と例を教えてください。

ベストアンサー1

おすすめ記事