just another question
David A. Bandel
david.bandel at gmail.com
Thu Apr 23 17:43:42 PDT 2009
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.
David A. Bandel
--
Focus on the dream, not the competition.
- Nemesis Air Racing Team motto
More information about the Linux-users
mailing list