From d146b8695ade27186b824ffa8d0b59917ab8fa57 Mon Sep 17 00:00:00 2001 From: saikumar <159767386+saikumar-pujari@users.noreply.github.com> Date: Tue, 20 Jan 2026 21:18:38 +0530 Subject: [PATCH] Document variable types in hello_variable script Added explanations for local and system variables in the script. --- what-is-a-variable/hello_variable | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/what-is-a-variable/hello_variable b/what-is-a-variable/hello_variable index 89ae6a1..3a24a18 100644 --- a/what-is-a-variable/hello_variable +++ b/what-is-a-variable/hello_variable @@ -2,4 +2,11 @@ # Welcome to your first Bash Script -echo 'Hello World!' \ No newline at end of file +#there are mainly 2 types of variables used here: 1)local variables 2)system variables +# 1)local variables: these variables are made by the user for program and these have some limitation to use these variables. + name='microsoft' + echo $name +# 2)system variables: these variables are predefined variables and can't change according to the usage.eg:$BASH,$BASH_VERSION,$HOME,$PWD + echo $BASH + echo $BASH_VERSION +