I'm not able to interpret the following shell command...
How does "\$USER=$USER" the same as given in line 2?
SCJP 1.4, SCWCD 1.4 - Hints for you, Certified Scrum Master
Did a rm -R / to find out that I lost my entire Linux installation!
posted 7 years ago
Well the following things you should know about bash:
- ' is different than ", the first specify a string which is not interpreted
- $ specify an environment variable, if is in 'string' is not interpreted, if is in "string" it is
- \$ is an escape sequence, so, even is present "string", the \$ is interpreted as a string, not as a value of a variable