Re: Quoting, variable substitution and command substitution
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Unix and Linux reviews > Free Unix support > Unix Shell > Re: Quoting, variable substitution and command substitution




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Re: Quoting, variable substitution and command substitution  
Klaus Alexander Seistrup


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
01-27-07 12:22 PM

Stephane CHAZELAS wrote:
 
>
> eval "$cmd"

In the given example where cmd="echo abc | grep abc" it makes no
difference whether $cmd is enclosed in quotation marks or not, but
of course, if you want to generalize you should enclose variables
etc. in quotation marks.

Cheers,

--
Klaus Alexander Seistrup
http://klaus.seistrup.dk/






[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 10:51 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register