From 9c5ad57f5c22a80ec0b6f0103649aa75b7c89719 Mon Sep 17 00:00:00 2001 From: eberdan Date: Wed, 21 Feb 2024 09:37:34 -0500 Subject: [PATCH] Update 04_shell_scripts.md --- Basic_shell/04_shell_scripts.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Basic_shell/04_shell_scripts.md b/Basic_shell/04_shell_scripts.md index 67a96761..d848e787 100644 --- a/Basic_shell/04_shell_scripts.md +++ b/Basic_shell/04_shell_scripts.md @@ -80,7 +80,7 @@ This line is the **absolute path to the Bash interpreter**. The shebang line ens **Why do I need a shebang line? My scripts ran perfectly well before without it.** -Having a shebang line is best practice. Your script runs fine without it, because in our current environment bash is the default shell. We mentioned previously that there are various flavors of the shell, and if your system defaults to something other than bash the script will not work. To avoid any issues, we explicitly state that this script needs to executed using the bash shell. +Having a shebang line is best practice. Your script runs fine without it, because we call our script with the command `sh listing.sh`, the sh part tells the computer to use bash to interpret the script. However, we will not always use sh to call our scripts and different programs (perl, python, etc) will have different shebang lines. To avoid any issues, it is best practice to add a shebang line to tell the bash shell which interpreter to use. #### Adding verbosity