Rocksolid Light

News from da outaworlds

mail  files  register  groups  login

Message-ID:  

BOFH excuse #67: descramble code needed from software company


comp / comp.lang.tcl / Re: Why do we need "eval"? (Expect question)

SubjectAuthor
* Why do we need "eval"? (Expect question)Kenny McCormack
`* Re: Why do we need "eval"? (Expect question)Harald Oehlmann
 +* Re: Why do we need "eval"? (Expect question)Kenny McCormack
 |+* Re: Why do we need "eval"? (Expect question)Rich
 ||+- Re: Why do we need "eval"? (Expect question)Harald Oehlmann
 ||`- Re: Why do we need "eval"? (Expect question)Kenny McCormack
 |`* Re: Why do we need "eval"? (Expect question)Harald Oehlmann
 | `* Re: Why do we need "eval"? (Expect question)Kenny McCormack
 |  `- Re: Why do we need "eval"? (Expect question)Rich
 `* Re: Why do we need "eval"? (Expect question)Rich
  `- Re: Why do we need "eval"? (Expect question)Kenny McCormack

1
Subject: Why do we need "eval"? (Expect question)
From: Kenny McCormack
Newsgroups: comp.lang.tcl
Organization: The official candy of the new Millennium
Date: Thu, 12 Sep 2024 15:07 UTC
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!xmission!nnrp.xmission!.POSTED.shell.xmission.com!not-for-mail
From: gazelle@shell.xmission.com (Kenny McCormack)
Newsgroups: comp.lang.tcl
Subject: Why do we need "eval"? (Expect question)
Date: Thu, 12 Sep 2024 15:07:41 -0000 (UTC)
Organization: The official candy of the new Millennium
Message-ID: <vbv03t$1t4qm$1@news.xmission.com>
Injection-Date: Thu, 12 Sep 2024 15:07:41 -0000 (UTC)
Injection-Info: news.xmission.com; posting-host="shell.xmission.com:166.70.8.4";
logging-data="2003798"; mail-complaints-to="abuse@xmission.com"
X-Newsreader: trn 4.0-test77 (Sep 1, 2010)
Originator: gazelle@shell.xmission.com (Kenny McCormack)
View all headers

Consider this (Unix/Linux/bash) command line:

$ expect -- /dev/fd/3 3<<< 'eval spawn -noecho printf {{\t%s\n}} $argv;interact' $(seq 1 10)

This correctly generates the output (each line starts with a tab):

1
2
3
4
5
6
7
8
9
10

But notice how we have to use "eval" in order to split up the args in $argv.
And, since we are using "eval", we have to "double quote" (with {}) the
"format" arg to "printf". It'd be nice if neither of these things were
necessary.

I've always believed that "eval" was "evil" and to be avoided if at all
possible - both in shell and in Tcl. It has strange side effects, such as
we see here (the need to "double quote"). Is there any way to get the
above effect w/o using "eval" ?

--
"Every time Mitt opens his mouth, a swing state gets its wings."

(Should be on a bumper sticker)

Subject: Re: Why do we need "eval"? (Expect question)
From: Harald Oehlmann
Newsgroups: comp.lang.tcl
Organization: A noiseless patient Spider
Date: Thu, 12 Sep 2024 17:33 UTC
References: 1
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: wortkarg3@yahoo.com (Harald Oehlmann)
Newsgroups: comp.lang.tcl
Subject: Re: Why do we need "eval"? (Expect question)
Date: Thu, 12 Sep 2024 19:33:01 +0200
Organization: A noiseless patient Spider
Lines: 48
Message-ID: <vbv8kd$blsb$1@dont-email.me>
References: <vbv03t$1t4qm$1@news.xmission.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 12 Sep 2024 19:33:04 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="ae3a192b59388df87300ca25b56dbdf0";
logging-data="382859"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX196iqgj8Gr6VNEFCQ05jRjb"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:JRBOslHVW6oXRGjZMk6gAM6Jjwk=
In-Reply-To: <vbv03t$1t4qm$1@news.xmission.com>
Content-Language: en-GB
View all headers

Am 12.09.2024 um 17:07 schrieb Kenny McCormack:
> Consider this (Unix/Linux/bash) command line:
>
> $ expect -- /dev/fd/3 3<<< 'eval spawn -noecho printf {{\t%s\n}} $argv;interact' $(seq 1 10)
>
> This correctly generates the output (each line starts with a tab):
>
> 1
> 2
> 3
> 4
> 5
> 6
> 7
> 8
> 9
> 10
>
> But notice how we have to use "eval" in order to split up the args in $argv.
> And, since we are using "eval", we have to "double quote" (with {}) the
> "format" arg to "printf". It'd be nice if neither of these things were
> necessary.
>
> I've always believed that "eval" was "evil" and to be avoided if at all
> possible - both in shell and in Tcl. It has strange side effects, such as
> we see here (the need to "double quote"). Is there any way to get the
> above effect w/o using "eval" ?
>

Kenny,
thanks for the question. Here is the answer by a TCL'er without expect
knowledge.

"eval" does an additional round of substitutions. This happens for all
elements and is intended, if a whole command is included in a variable.

To only expand some arguments, the list expansion operator may be used:

In your case:
eval spawn -noecho printf {{\t%s\n}} $argv
equal to:
spawn -noecho printf {\t%s\n} {*}$argv
eventually, this works to:
spawn -noecho printf \t%s\n {*}$argv

Harald

Subject: Re: Why do we need "eval"? (Expect question)
From: Kenny McCormack
Newsgroups: comp.lang.tcl
Organization: The official candy of the new Millennium
Date: Thu, 12 Sep 2024 18:45 UTC
References: 1 2
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!xmission!nnrp.xmission!.POSTED.shell.xmission.com!not-for-mail
From: gazelle@shell.xmission.com (Kenny McCormack)
Newsgroups: comp.lang.tcl
Subject: Re: Why do we need "eval"? (Expect question)
Date: Thu, 12 Sep 2024 18:45:30 -0000 (UTC)
Organization: The official candy of the new Millennium
Message-ID: <vbvcsa$1tb4p$1@news.xmission.com>
References: <vbv03t$1t4qm$1@news.xmission.com> <vbv8kd$blsb$1@dont-email.me>
Injection-Date: Thu, 12 Sep 2024 18:45:30 -0000 (UTC)
Injection-Info: news.xmission.com; posting-host="shell.xmission.com:166.70.8.4";
logging-data="2010265"; mail-complaints-to="abuse@xmission.com"
X-Newsreader: trn 4.0-test77 (Sep 1, 2010)
Originator: gazelle@shell.xmission.com (Kenny McCormack)
View all headers

In article <vbv8kd$blsb$1@dont-email.me>,
Harald Oehlmann <wortkarg3@yahoo.com> wrote:
>Am 12.09.2024 um 17:07 schrieb Kenny McCormack:
>> Consider this (Unix/Linux/bash) command line:
>>
>> $ expect -- /dev/fd/3 3<<< 'eval spawn -noecho printf {{\t%s\n}}
>$argv;interact' $(seq 1 10)
>>
>> This correctly generates the output (each line starts with a tab):
>>
>> 1
>> 2
>> 3
>> 4
>> 5
>> 6
>> 7
>> 8
>> 9
>> 10
>>
>> But notice how we have to use "eval" in order to split up the args in $argv.
>> And, since we are using "eval", we have to "double quote" (with {}) the
>> "format" arg to "printf". It'd be nice if neither of these things were
>> necessary.
>>
>> I've always believed that "eval" was "evil" and to be avoided if at all
>> possible - both in shell and in Tcl. It has strange side effects, such as
>> we see here (the need to "double quote"). Is there any way to get the
>> above effect w/o using "eval" ?
>>
....
>To only expand some arguments, the list expansion operator may be used:
>
>In your case:
>eval spawn -noecho printf {{\t%s\n}} $argv
>equal to:
>spawn -noecho printf {\t%s\n} {*}$argv
>eventually, this works to:
>spawn -noecho printf \t%s\n {*}$argv

Indeed it does. Thanks! This solves my issue.

ISTM that this {*} thing is a relatively recent addition to the langauge,
since Expect has been around for a long time, and most of the scripts that
do this sort of thing were written long ago.

--
person woman man camera tv

Subject: Re: Why do we need "eval"? (Expect question)
From: Rich
Newsgroups: comp.lang.tcl
Organization: A noiseless patient Spider
Date: Fri, 13 Sep 2024 04:32 UTC
References: 1 2 3
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: rich@example.invalid (Rich)
Newsgroups: comp.lang.tcl
Subject: Re: Why do we need "eval"? (Expect question)
Date: Fri, 13 Sep 2024 04:32:55 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 14
Message-ID: <vc0f9n$ml8n$1@dont-email.me>
References: <vbv03t$1t4qm$1@news.xmission.com> <vbv8kd$blsb$1@dont-email.me> <vbvcsa$1tb4p$1@news.xmission.com>
Injection-Date: Fri, 13 Sep 2024 06:32:55 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="31c2bedd965bbd9ffe53b26dfc990353";
logging-data="742679"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18yYyAwhv4N+rao9JpWKq7g"
User-Agent: tin/2.6.1-20211226 ("Convalmore") (Linux/5.15.139 (x86_64))
Cancel-Lock: sha1:C/sLPlCeYosTK27wKK3YcTY6AWc=
View all headers

Kenny McCormack <gazelle@shell.xmission.com> wrote:
> ISTM that this {*} thing is a relatively recent addition to the langauge,

Not really, it was added in 8.5, which was released Feb 12, 2016 [1].
Although 2016 *is* relatively recent in regards to many expect scripts.

> since Expect has been around for a long time, and most of the scripts that
> do this sort of thing were written long ago.

Before 8.5, 'eval' was the way to perform the "splicing" that {*}
provides.

[1] https://www.tcl.tk/software/tcltk/8.5.tml

Subject: Re: Why do we need "eval"? (Expect question)
From: Rich
Newsgroups: comp.lang.tcl
Organization: A noiseless patient Spider
Date: Fri, 13 Sep 2024 04:36 UTC
References: 1 2
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: rich@example.invalid (Rich)
Newsgroups: comp.lang.tcl
Subject: Re: Why do we need "eval"? (Expect question)
Date: Fri, 13 Sep 2024 04:36:04 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 13
Message-ID: <vc0ffk$ml8n$2@dont-email.me>
References: <vbv03t$1t4qm$1@news.xmission.com> <vbv8kd$blsb$1@dont-email.me>
Injection-Date: Fri, 13 Sep 2024 06:36:04 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="31c2bedd965bbd9ffe53b26dfc990353";
logging-data="742679"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+e/GshcZv00dOzBgPbIShn"
User-Agent: tin/2.6.1-20211226 ("Convalmore") (Linux/5.15.139 (x86_64))
Cancel-Lock: sha1:OB/LDwFvlxeIAZgCYoQrMhfSeDc=
View all headers

Harald Oehlmann <wortkarg3@yahoo.com> wrote:
> spawn -noecho printf {\t%s\n} {*}$argv
> eventually, this works to:
> spawn -noecho printf \t%s\n {*}$argv

Do note that the second one causes \t and \n to be interpreted by Tcl's
parser, so printf gets passed a literal tab and literal newline in its
parameter list. The first passes the \ and t characters on to printf,
and then printf does the interpretation.

Both likely work fine for printf, but may not work fine for all
possible external commands.

Subject: Re: Why do we need "eval"? (Expect question)
From: Harald Oehlmann
Newsgroups: comp.lang.tcl
Organization: A noiseless patient Spider
Date: Fri, 13 Sep 2024 06:21 UTC
References: 1 2 3
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: wortkarg3@yahoo.com (Harald Oehlmann)
Newsgroups: comp.lang.tcl
Subject: Re: Why do we need "eval"? (Expect question)
Date: Fri, 13 Sep 2024 08:21:53 +0200
Organization: A noiseless patient Spider
Lines: 15
Message-ID: <vc0lm1$npv9$1@dont-email.me>
References: <vbv03t$1t4qm$1@news.xmission.com> <vbv8kd$blsb$1@dont-email.me>
<vbvcsa$1tb4p$1@news.xmission.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 13 Sep 2024 08:21:54 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="5c8861440040b04af4bfb69028050c12";
logging-data="780265"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18I3Qo+nFE7L3Vk9rS/R/P2"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:+4/ynet8SiYw/l+u6qLDUUPPUZI=
Content-Language: en-GB
In-Reply-To: <vbvcsa$1tb4p$1@news.xmission.com>
View all headers

Am 12.09.2024 um 20:45 schrieb Kenny McCormack:
> ISTM that this {*} thing is a relatively recent addition to the langauge,
> since Expect has been around for a long time, and most of the scripts that
> do this sort of thing were written long ago.

"Relatively recent" is quite relative. Here is the relevant changes file
entry:

2006-11-02 (feature change)[TIP 293] Replace {expand} with {*} (hobbs)
*** POTENTIAL INCOMPATIBILITY with previous 8.5 alphas only ***

;-)

Subject: Re: Why do we need "eval"? (Expect question)
From: Harald Oehlmann
Newsgroups: comp.lang.tcl
Organization: A noiseless patient Spider
Date: Fri, 13 Sep 2024 06:47 UTC
References: 1 2 3 4
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: wortkarg3@yahoo.com (Harald Oehlmann)
Newsgroups: comp.lang.tcl
Subject: Re: Why do we need "eval"? (Expect question)
Date: Fri, 13 Sep 2024 08:47:39 +0200
Organization: A noiseless patient Spider
Lines: 17
Message-ID: <vc0n6b$o4nq$1@dont-email.me>
References: <vbv03t$1t4qm$1@news.xmission.com> <vbv8kd$blsb$1@dont-email.me>
<vbvcsa$1tb4p$1@news.xmission.com> <vc0f9n$ml8n$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 13 Sep 2024 08:47:39 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="5c8861440040b04af4bfb69028050c12";
logging-data="791290"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18W+gFLTzuOUfEwEKjP7eMj"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:IJnoKB2LHZd3qXGQ9YTdSq3udkA=
In-Reply-To: <vc0f9n$ml8n$1@dont-email.me>
Content-Language: en-GB
View all headers

Am 13.09.2024 um 06:32 schrieb Rich:
> Kenny McCormack <gazelle@shell.xmission.com> wrote:
>> ISTM that this {*} thing is a relatively recent addition to the langauge,
>
> Not really, it was added in 8.5, which was released Feb 12, 2016 [1].
> Although 2016 *is* relatively recent in regards to many expect scripts.
>
>> since Expect has been around for a long time, and most of the scripts that
>> do this sort of thing were written long ago.
>
> Before 8.5, 'eval' was the way to perform the "splicing" that {*}
> provides.
>
>
> [1] https://www.tcl.tk/software/tcltk/8.5.tml

Sorry, this date is TCL 8.5.19. The {*} was TCL 8.5.0...

Subject: Re: Why do we need "eval"? (Expect question)
From: Kenny McCormack
Newsgroups: comp.lang.tcl
Organization: The official candy of the new Millennium
Date: Fri, 13 Sep 2024 11:21 UTC
References: 1 2 3 4
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!xmission!nnrp.xmission!.POSTED.shell.xmission.com!not-for-mail
From: gazelle@shell.xmission.com (Kenny McCormack)
Newsgroups: comp.lang.tcl
Subject: Re: Why do we need "eval"? (Expect question)
Date: Fri, 13 Sep 2024 11:21:07 -0000 (UTC)
Organization: The official candy of the new Millennium
Message-ID: <vc1773$1u8fb$1@news.xmission.com>
References: <vbv03t$1t4qm$1@news.xmission.com> <vbv8kd$blsb$1@dont-email.me> <vbvcsa$1tb4p$1@news.xmission.com> <vc0f9n$ml8n$1@dont-email.me>
Injection-Date: Fri, 13 Sep 2024 11:21:07 -0000 (UTC)
Injection-Info: news.xmission.com; posting-host="shell.xmission.com:166.70.8.4";
logging-data="2040299"; mail-complaints-to="abuse@xmission.com"
X-Newsreader: trn 4.0-test77 (Sep 1, 2010)
Originator: gazelle@shell.xmission.com (Kenny McCormack)
View all headers

In article <vc0f9n$ml8n$1@dont-email.me>, Rich <rich@example.invalid> wrote:
>Kenny McCormack <gazelle@shell.xmission.com> wrote:
>> ISTM that this {*} thing is a relatively recent addition to the langauge,
>
>Not really, it was added in 8.5, which was released Feb 12, 2016 [1].
>Although 2016 *is* relatively recent in regards to many expect scripts.

Well, yes, really, from the perspective of Expect.

That was my point - that Expect hasn't really changed much since the late
90s, and most of the active development was done then. The scripts that I
have in mind - such as "unbuffer" - date back to that era.

>> since Expect has been around for a long time, and most of the scripts that
>> do this sort of thing were written long ago.
>
>Before 8.5, 'eval' was the way to perform the "splicing" that {*}
>provides.

Right. OK.

I'm glad I learned about {*}.

--
This is the GOP's problem. When you're at the beginning of the year
and you've got nine Democrats running for the nomination, maybe one or
two of them are Dennis Kucinich. When you have nine Republicans, seven
or eight of them are Michelle Bachmann.

Subject: Re: Why do we need "eval"? (Expect question)
From: Kenny McCormack
Newsgroups: comp.lang.tcl
Organization: The official candy of the new Millennium
Date: Fri, 13 Sep 2024 11:26 UTC
References: 1 2 3
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!xmission!nnrp.xmission!.POSTED.shell.xmission.com!not-for-mail
From: gazelle@shell.xmission.com (Kenny McCormack)
Newsgroups: comp.lang.tcl
Subject: Re: Why do we need "eval"? (Expect question)
Date: Fri, 13 Sep 2024 11:26:10 -0000 (UTC)
Organization: The official candy of the new Millennium
Message-ID: <vc17gi$1u8fb$2@news.xmission.com>
References: <vbv03t$1t4qm$1@news.xmission.com> <vbv8kd$blsb$1@dont-email.me> <vc0ffk$ml8n$2@dont-email.me>
Injection-Date: Fri, 13 Sep 2024 11:26:10 -0000 (UTC)
Injection-Info: news.xmission.com; posting-host="shell.xmission.com:166.70.8.4";
logging-data="2040299"; mail-complaints-to="abuse@xmission.com"
X-Newsreader: trn 4.0-test77 (Sep 1, 2010)
Originator: gazelle@shell.xmission.com (Kenny McCormack)
View all headers

In article <vc0ffk$ml8n$2@dont-email.me>, Rich <rich@example.invalid> wrote:
>Harald Oehlmann <wortkarg3@yahoo.com> wrote:
>> spawn -noecho printf {\t%s\n} {*}$argv
>> eventually, this works to:
>> spawn -noecho printf \t%s\n {*}$argv
>
>Do note that the second one causes \t and \n to be interpreted by Tcl's
>parser, so printf gets passed a literal tab and literal newline in its
>parameter list. The first passes the \ and t characters on to printf,
>and then printf does the interpretation.
>
>Both likely work fine for printf, but may not work fine for all
>possible external commands.
>

I think you misunderstand Harald's post (i.e., his notation).

The point is that if you pass {{\t%s\n}} to "eval", both sets of braces get
removed and what "printf" sees is (literally)

backslash tee percent ess backslash en

If you only pass a single level of braces, and eval it, then yes, as you
said, printf will see

tab percent ess newline

--
"Insisting on perfect safety is for people who don't have the balls to live
in the real world."

- Mary Shafer, NASA Ames Dryden -

Subject: Re: Why do we need "eval"? (Expect question)
From: Kenny McCormack
Newsgroups: comp.lang.tcl
Organization: The official candy of the new Millennium
Date: Fri, 13 Sep 2024 17:17 UTC
References: 1 2 3 4
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!xmission!nnrp.xmission!.POSTED.shell.xmission.com!not-for-mail
From: gazelle@shell.xmission.com (Kenny McCormack)
Newsgroups: comp.lang.tcl
Subject: Re: Why do we need "eval"? (Expect question)
Date: Fri, 13 Sep 2024 17:17:46 -0000 (UTC)
Organization: The official candy of the new Millennium
Message-ID: <vc1s3q$1uhk4$1@news.xmission.com>
References: <vbv03t$1t4qm$1@news.xmission.com> <vbv8kd$blsb$1@dont-email.me> <vbvcsa$1tb4p$1@news.xmission.com> <vc0lm1$npv9$1@dont-email.me>
Injection-Date: Fri, 13 Sep 2024 17:17:46 -0000 (UTC)
Injection-Info: news.xmission.com; posting-host="shell.xmission.com:166.70.8.4";
logging-data="2049668"; mail-complaints-to="abuse@xmission.com"
X-Newsreader: trn 4.0-test77 (Sep 1, 2010)
Originator: gazelle@shell.xmission.com (Kenny McCormack)
View all headers

In article <vc0lm1$npv9$1@dont-email.me>,
Harald Oehlmann <wortkarg3@yahoo.com> wrote:
>Am 12.09.2024 um 20:45 schrieb Kenny McCormack:
>> ISTM that this {*} thing is a relatively recent addition to the langauge,
>> since Expect has been around for a long time, and most of the scripts that
>> do this sort of thing were written long ago.
>
>"Relatively recent" is quite relative. Here is the relevant changes file
>entry:
>
>2006-11-02 (feature change)[TIP 293] Replace {expand} with {*} (hobbs)
> *** POTENTIAL INCOMPATIBILITY with previous 8.5 alphas only ***
>
>;-)

The other poster seemed to think 2016 (not 2006). That's still 8 years
ago...

--
Republican Congressman Matt Gaetz claims that only ugly women want
abortions, which they will never need since no one will impregnate them.

Subject: Re: Why do we need "eval"? (Expect question)
From: Rich
Newsgroups: comp.lang.tcl
Organization: A noiseless patient Spider
Date: Fri, 13 Sep 2024 17:24 UTC
References: 1 2 3 4 5
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: rich@example.invalid (Rich)
Newsgroups: comp.lang.tcl
Subject: Re: Why do we need "eval"? (Expect question)
Date: Fri, 13 Sep 2024 17:24:58 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 20
Message-ID: <vc1sha$ve71$1@dont-email.me>
References: <vbv03t$1t4qm$1@news.xmission.com> <vbv8kd$blsb$1@dont-email.me> <vbvcsa$1tb4p$1@news.xmission.com> <vc0lm1$npv9$1@dont-email.me> <vc1s3q$1uhk4$1@news.xmission.com>
Injection-Date: Fri, 13 Sep 2024 19:24:58 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="31c2bedd965bbd9ffe53b26dfc990353";
logging-data="1030369"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+vnHWjqbt22w/YX2izGN1Z"
User-Agent: tin/2.6.1-20211226 ("Convalmore") (Linux/5.15.139 (x86_64))
Cancel-Lock: sha1:e0yVt5V/2GLrBvfXK1oF+Ra1tzE=
View all headers

Kenny McCormack <gazelle@shell.xmission.com> wrote:
> In article <vc0lm1$npv9$1@dont-email.me>,
> Harald Oehlmann <wortkarg3@yahoo.com> wrote:
>>Am 12.09.2024 um 20:45 schrieb Kenny McCormack:
>>> ISTM that this {*} thing is a relatively recent addition to the langauge,
>>> since Expect has been around for a long time, and most of the scripts that
>>> do this sort of thing were written long ago.
>>
>>"Relatively recent" is quite relative. Here is the relevant changes file
>>entry:
>>
>>2006-11-02 (feature change)[TIP 293] Replace {expand} with {*} (hobbs)
>> *** POTENTIAL INCOMPATIBILITY with previous 8.5 alphas only ***
>>
>>;-)
>
> The other poster seemed to think 2016 (not 2006). That's still 8 years
> ago...

I pulled a date for a "point version" of 8.5 instead of 8.5.0.

1

rocksolid light 0.9.8
clearnet tor