[bash] 싱글쿼테이션과 더블쿼테이션의 차이

Posted by

http://stackoverflow.com/questions/6697753/difference-between-single-and-double-quotes-in-bash

 

– 답변 내용 중 –

For example, this

#!/bin/sh
MYVAR=sometext
echo "double quotes gives you $MYVAR"
echo 'single quotes gives you $MYVAR'

 

will give this:

double quotes gives you sometext
single quotes gives you $MYVAR

 

 

 

변수 값이 들어가느냐 아니냐의 차이