I'm using VScode (1.105.1) with bash debug and remote SSH extensions to walk through bash scripts on an AL2023 EC2 instance. The bash version on AL2023 is 5.2.15, so ...
./script.sh のように 直接実行 する時、シバンがないと どのプログラムで解釈すべきか不明 (実行権限があっても失敗するか、想定外のシェルで動く)。