Some instructions say to put 'uname -r' into terminal commands. Is this supposed to be automatically converted by the system to something else? It doesn't get converted to anything on my system. uname -r only works by itself but not as a program argument.

link|improve this question

74% accept rate
1  
It would be helpful to have a link to these "instructions" :) – John T Aug 8 '10 at 1:24
feedback

1 Answer

up vote 5 down vote accepted

Probably, it says:

`uname -r`

Make sure you use the right quotes. A trivial example is:

echo `uname -r`

Of course, this is just equivalent to:

uname -r

The backquotes capture the output of the command as a string. Generally the equivalent:

echo $(uname -r)

is considered clearer. It nests correctly, and it's harder to misinterpret.

link|improve this answer
It was the quotes. – OSX NINJA Aug 8 '10 at 4:34
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.