Search code examples
linuxbashshellcase-sensitivevariable-names

Bash variables: case sensitive or not?


Is Bash shell scripting case sensitive?

Is variable date the same as DATE?


Solution

  • Yes, it is case sensitive, just like the rest of UNIX. $date and $DATE are two different variables. makefile and Makefile are two different files. -h and -H are two distinct flags (usually).