Rocksolid Light

Welcome to Rocksolid Light

mail  files  register  newsreader  groups  login

Message-ID:  

"Of all the tyrannies that affect mankind, tyranny in religion is the worst." -- Thomas Paine


devel / comp.unix.shell / [ksh] Expanding variables interactively in vi edit mode

SubjectAuthor
o [ksh] Expanding variables interactively in vi edit modeJanis Papanagnou

1
[ksh] Expanding variables interactively in vi edit mode

<ualdin$1ns61$1@dont-email.me>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=6537&group=comp.unix.shell#6537

  copy link   Newsgroups: comp.unix.shell
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: janis_papanagnou+ng@hotmail.com (Janis Papanagnou)
Newsgroups: comp.unix.shell
Subject: [ksh] Expanding variables interactively in vi edit mode
Date: Sat, 5 Aug 2023 13:59:19 +0200
Organization: A noiseless patient Spider
Lines: 18
Message-ID: <ualdin$1ns61$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
Injection-Date: Sat, 5 Aug 2023 11:59:19 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="49c59df721c3408459000c2cce36acb0";
logging-data="1831105"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18IvMoDLdjVPUhGDXMATCTB"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101
Thunderbird/45.8.0
Cancel-Lock: sha1:gEb+LJIgGDjBgIkg5RohA8haST0=
X-Enigmail-Draft-Status: N1110
X-Mozilla-News-Host: news://news.eternal-september.org:119
 by: Janis Papanagnou - Sat, 5 Aug 2023 11:59 UTC

In ksh I expand entities with <Tab> and/or in vi command editing mode
with <Esc>* .

In the presence of files "AAA BBB" and "AAA CCC" the effect with <Tab>
completion after typing A<Tab> AAA\ (i.e. terminated by an escaped
blank because of the ambiguity after "AAA "). If I <Esc>* instead I
get AAA\ BBB AAA\ CCC, as expected, both blanks correctly escaped.

With x="AAA BBB" and expanding $x or "$x or "$x" with <Esc>* the blanks
don't get escaped. Similar with, say, calling
pdfreader some\ doc.pdf
and subsequently trying to expand "$_"; I have to manually quote the
argument or escape the space(s). (Which is of course cumbersome.)

My question is, is there a point in the observed behavior or should
that be changed/fixed? (I tried it with ksh93u+ and ksh93u+m alpha.)

Janis

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor