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:

> In PERL for instance,
>
> $a = "foobarbaz";
>
> do you do:
>
> print glob(split($a, $ifs))
>
> instead of
>
> print $a
>
> just because you know $a would not be affected by neither of
> split not glob?


I wasn't answering a PERL question, I was pointing at a solution
using eval to solve a specific problem. I agree that enclosing
parts of the expression in quotation marks is the proper way of
presenting a general solution. However, I never pretended to
deliver such a general solution.

EOD [for my part].

Cheers,

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

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com