Re: Why do we need "eval"? (Expect question)

Liste des Groupes 
Sujet : Re: Why do we need "eval"? (Expect question)
De : rich (at) *nospam* example.invalid (Rich)
Groupes : comp.lang.tcl
Date : 13. Sep 2024, 05:36:04
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vc0ffk$ml8n$2@dont-email.me>
References : 1 2
User-Agent : tin/2.6.1-20211226 ("Convalmore") (Linux/5.15.139 (x86_64))
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.


Date Sujet#  Auteur
12 Sep 24 * Why do we need "eval"? (Expect question)11Kenny McCormack
12 Sep 24 `* Re: Why do we need "eval"? (Expect question)10Harald Oehlmann
12 Sep 24  +* Re: Why do we need "eval"? (Expect question)7Kenny McCormack
13 Sep 24  i+* Re: Why do we need "eval"? (Expect question)3Rich
13 Sep 24  ii+- Re: Why do we need "eval"? (Expect question)1Harald Oehlmann
13 Sep 24  ii`- Re: Why do we need "eval"? (Expect question)1Kenny McCormack
13 Sep 24  i`* Re: Why do we need "eval"? (Expect question)3Harald Oehlmann
13 Sep 24  i `* Re: Why do we need "eval"? (Expect question)2Kenny McCormack
13 Sep 24  i  `- Re: Why do we need "eval"? (Expect question)1Rich
13 Sep 24  `* Re: Why do we need "eval"? (Expect question)2Rich
13 Sep 24   `- Re: Why do we need "eval"? (Expect question)1Kenny McCormack

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal