Skip to content

Commit

Permalink
Add remark about uppercase/lowercase variable names
Browse files Browse the repository at this point in the history
  • Loading branch information
bertvv committed Nov 21, 2024
1 parent 64cf23d commit 6513ee5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions modules/shell_variables/030_shell_variables_theory.md
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,8 @@ tux
[student@linux ~]$ exit
```

**Remark** that is actually a convention to give **environment variables uppercase names** and "normal" (non-exported) variables lowercase names.

When you execute a script, it will also run in a subshell, so only `export`ed variables will be available in the script.

If you try this example, first `unset` the variable `$penguin`.
Expand Down

0 comments on commit 6513ee5

Please sign in to comment.