bobbyiliev / introduction-to-bash-scripting

Free Introduction to Bash Scripting eBook
https://ebook.bobby.sh
MIT License
4.38k stars 449 forks source link

Add shebang information #155

Closed Elshirak closed 3 months ago

Elshirak commented 3 months ago

What type of PR is this? (check all applicable)

Description

Hello @bobbyiliev! I suggest adding to the shebang description information about '#!/usr/bin/env bash', it makes scripts more portable and also stable. It would be great to hear any comments, feel free to discuss.

Related Tickets & Documents

!/usr/bin/env bash is also a shebang line used in script files to execute commands with the Bash shell.

It uses the env command to display the environment variables present in the system and then execute commands with the defined interpreter. See more here

what-the-diff[bot] commented 3 months ago

PR Summary