I hadn't known about the $(...) function either until yesterday. So I've 
learned MANY interesting tricks just by asking that simple question (many
thanks to everyone). I have hated the back-tik thing as well as it's really 
inelegant however it was all I knew.

-J




             Adam Thornton <[EMAIL PROTECTED]>
             Sent by: Linux on 390 Port
             <[email protected]>                                          
                                                                   To
                                                                     
[email protected]
                                                                                
                                                                   cc
             09/06/2007 05:13 PM
                                                                                
                                                              Subject
                                                                     Re: I am 
missing something basic with bash scripting.
                            Please respond to
               Linux on 390 Port <[email protected]>








On Sep 6, 2007, at 2:56 PM, Eric Chevalier wrote:

> On 9/6/2007 4:31 PM, Edmund R. MacKenty wrote:
>> Note that I'm using $(...) instead of backticks.  Backticks are evil!
> The InList() function is slick; I like it!
>
> But I'm curious: why are backticks evil? (I didn't know about the
> "$(command)" trick; I've been using backticks for a long time. I learn
> something new every day!)

Backticks don't nest (without extensive and tricky escaping).  $() does.

Adam

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390

Reply via email to