複数行コマンドにインラインコメントを挿入するには?

複数行コマンドにインラインコメントを挿入するには?

bashでこれをやりたいです。

apt install -y \
   curl \  # i'd like to insert comment here somehow
   python3

しかし、これはうまくいきません。

ベストアンサー1

離れている:

apt install -y \
   curl `# my comment` \
   python3

おすすめ記事