Unix Shell - Re: Quoting, variable substitution and command substitution

This is Interesting: Free IT Magazines  
Home > Archive > Unix Shell > January 2007 > Re: Quoting, variable substitution and command substitution





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

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

2007-01-27, 7:22 am

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/

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com