Bash variables: case sensitive or not?

Mario picture Mario · Mar 22, 2013 · Viewed 17.8k times · Source

Is bash shell scripting case sensitive?

Is variable date the same as DATE?

Answer

John Kugelman picture John Kugelman · Mar 22, 2013

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).