use $() instead of backticks in talkwith

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Steve,

On Tue, Sep 28, 2010 at 09:32:55AM -0700, Steve Holmes wrote:
> This is more a unix shell script question than anything but I'm
> curious; why the recent changes as denoted in the git update below and
> this subject line:
> use $() instead of backticks in talkwith
> I may not be super current on shell script behavior and trends byt why
> is $(command) better than `command`? I've alwys used the tic marks
> because I've seen that most often used.  No better reason than that
> but I figured I can change my approach if this other deal is better or
> more appropriate.

There is some information on this at the following URL:

http://tldp.org/LDP/Bash-Beginners-Guide/html/sect_03_04.html

Here are some more examples of the issues with backticks.

http://mywiki.wooledge.org/BashFAQ/082

In a nutshell, it appears to be safer to use $(command).

William




[Index of Archives]     [Linux for the Blind]     [Fedora Discussioin]     [Linux Kernel]     [Yosemite News]     [Big List of Linux Books]
  Powered by Linux