On 01/03/2015 08:54 AM, Hylton Conacher (ZR1HPC) wrote:
echo $a abcdef Displays the string of a
NOT! Evaluates the variable "a" See man page on "expansion"
echo '$a' $a Displays what's between back quotes
For a start those are single quotes not back-quotes or back-ticks. Second, see the man page on the difference in how shell variables are evaluated when quoted differently. " is not the same as '. See, once again, under QUOTING ... There are three quoting mechanisms: the escape character, single quotes, and double quotes.
echo "$a" abcdef As per previous example echo `$a` abcdef: command not found Would display the command between the forward quotes although I would think the command would be in-between a forward and back quote.
NO! If you want to use that pernicious type of wording rather than that of the man page, it would read would display THE RESULT OF EVALUATING THE COMMAND between the BACK quotes The rest of what you say leads mot think you are still confused, not least of all over such matters as evaluation of variables and 'indirection'. So much of the distinction we are trying to point out here is computing 101. Please step back and think what is the difference between a string, a variable, and argument to a command. -- /"\ \ / ASCII Ribbon Campaign X Against HTML Mail / \ -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org