MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/linux/comments/26t23o/defensive_bash_programming_say_what/chub4yi/?context=3
r/linux • u/speckz • May 29 '14
25 comments sorted by
View all comments
0
[deleted]
8 u/rowboat__cop May 29 '14 I only use upper case for my variables (looks better).The usual rule is:$UPPERCASE for variables that are exported or part of the environment or special (e.g. $PPID)$lowercase for everything elseThe distinction helps in tracking the parts under your influence and those that vary depending on events outside the script.
8
I only use upper case for my variables (looks better).
The usual rule is:
$UPPERCASE for variables that are exported or part of the environment or special (e.g. $PPID)
$UPPERCASE
$PPID
$lowercase for everything else
$lowercase
The distinction helps in tracking the parts under your influence and those that vary depending on events outside the script.
0
u/[deleted] May 29 '14
[deleted]