miércoles, 17 de junio de 2009

Expanding strings in shell


$ a="my string"
$ _


Simple quote doesn't expand the variable:

$ echo 'This is $a'
This is $a
$ _


Double quote does expand the variable:

$ echo "This is $a"
This is my string
$ _

No hay comentarios:

Publicar un comentario