just another question

vu pham vu at sivell.com
Fri Apr 24 19:09:41 PDT 2009


David A. Bandel wrote:
> On Thu, Apr 23, 2009 at 3:33 PM, vu pham <vu at sivell.com> wrote:
>> Is there any difference between using a=$(command) and  a=`command` ?
> 
> eval uname -r
> (although you can't do a=eval uname -r)
> most texts will tell you your first example is the best.  It's easier
> to read and understand.
> 
> Which it better:  test or [ ] ?
> 
> in most systems, [ and test are links.  test is easier to understand,
> and there's less confusion that you won't forget the required ] or
> white space to separate [ from the expression you're testing.
> 
>> I tried a simple example of kver=$(uname -r) and kver=`uname -r` and found
>> they are the same but I am not sure if there is something that I do not
>> know.
> 
> 
> 

Thanks, David. Late reply because of out of town for a lab that requires 
no computer/phone/ ... Just got back.

Vu




More information about the Linux-users mailing list