| Deutsch English Français Italiano |
|
<vrmbb6$3vamk$1@dont-email.me> View for Bookmarking (what is this?) Look up another Usenet article |
Path: news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail From: saito <saitology9@gmail.com> Newsgroups: comp.lang.tcl Subject: Re: can this work? Date: Sat, 22 Mar 2025 08:44:21 -0400 Organization: A noiseless patient Spider Lines: 21 Message-ID: <vrmbb6$3vamk$1@dont-email.me> References: <vrjsse$1oane$1@dont-email.me> <20250321163420.39ecbc0b40151daab77dcc27@domain.invalid> <vrkkeq$2c2m0$1@dont-email.me> <vrkqq1$2hm9c$1@dont-email.me> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Sat, 22 Mar 2025 13:44:23 +0100 (CET) Injection-Info: dont-email.me; posting-host="e5bc64e0bb2a3b416951f6e55a886259"; logging-data="4172500"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18QkfUAiSPVFTV2CcjYwuF+" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:lHjB7EvTwtg+WT74JMrR0OR4rSk= In-Reply-To: <vrkqq1$2hm9c$1@dont-email.me> Content-Language: en-US On 3/21/2025 6:56 PM, Rich wrote: > > When the parser is parsing the command, the third "word" of the first > for loop is: > > "\$i $op \$q" > > Due to rule four, variable substitution and backslash substution is > performed on this word, because it is double quoted. I read "double quoted" a few times - I think you meant "double-quote'd". So since it double-quoted, the substitutions occur as you described. And whatever results from that becomes a "static" argument/parameter to the for-loop. Is this right? I recall warnings against using double quotes with loops since the substitution occurs once. I guess I could benefit from this if you explain why the for-loop keeps re-evaluating a double-quoted string.