Re: [ksh93u+m] Interactive subshell expansion disfunctional

Liste des GroupesRevenir à cu shell 
Sujet : Re: [ksh93u+m] Interactive subshell expansion disfunctional
De : martijn (at) *nospam* inlv.demon.nl (Martijn Dekker)
Groupes : comp.unix.shell
Date : 22. Jun 2024, 01:14:27
Autres entêtes
Message-ID : <ldmfqjFgl6uU1@mid.individual.net>
References : 1
User-Agent : Mozilla Thunderbird
Op 21-05-2024 om 17:57 schreef Janis Papanagnou:
I recently replaced all original ksh93u+ by ksh93u+m, and meanwhile
noticed quite some deficiencies, things that worked in original ksh
but not any more in ksh93u+m.
I would of course be very interested in learning what deficiencies (other than the below) you've been observing.

The latest observation is that in interactive mode with 'set -o vi'
I was able to write a command substitution, say,
    ls $(date)
 and with the cursor positioned (e.g.) at the closing parenthesis I
could expand the argument by Esc-* to obtain
    ls 2024\-05\-21
 This does not seem to work in ksh93u+m. - Is there a chance to get
original ksh behavior back?
"Subshell expansion" was never meant to be a thing and is not documented anywhere. The behaviour was a bug; this was not supposed to happen. It also behaved inconsistently and crashed the shell in some cases.
For further details and rationale, please see:
https://github.com/ksh93/ksh/commit/7a2d3564
https://github.com/ksh93/ksh/issues/268
The documented behaviour of ESC-* in emacs is:
        M-*       Attempt pathname expansion on the current word.  An asterisk is
                  appended if the word doesn't match any file or contain any
                  special pattern characters.
Pathname expansion simply has no business executing code; that's not what it's for.
I can see how the behaviour as you describe it could come in handy, though. We could treat it as a feature request for version 93u+m/1.1 and up. It would have to be implemented properly. If implemented it should probably also be bound to a new key combination.
--
||    modernish -- harness the shell
||    https://github.com/modernish/modernish
||
||    KornShell lives!
||    https://github.com/ksh93/ksh

Date Sujet#  Auteur
21 May 24 * [ksh93u+m] Interactive subshell expansion disfunctional7Janis Papanagnou
22 Jun 24 `* Re: [ksh93u+m] Interactive subshell expansion disfunctional6Martijn Dekker
22 Jun 24  `* Re: [ksh93u+m] Interactive subshell expansion disfunctional5Janis Papanagnou
22 Jun 24   `* Re: [ksh93u+m] Interactive subshell expansion disfunctional4Janis Papanagnou
22 Jun 24    +- Re: [ksh93u+m] Interactive subshell expansion disfunctional1Janis Papanagnou
2 Jul 24    `* Re: [ksh93u+m] Interactive subshell expansion disfunctional2Martijn Dekker
2 Jul 24     `- Re: [ksh93u+m] Interactive subshell expansion disfunctional1Janis Papanagnou

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal