From: Grant Taylor <gtaylor@tnetconsulting.net>
To: zsh-users@zsh.org
Subject: Re: Looking for a pointer on what to search for to find information on command expansion / substitution.
Date: Wed, 1 Mar 2023 14:23:32 -0700 [thread overview]
Message-ID: <0d40c23a-75da-662a-3dd2-376095ed2830@spamtrap.tnetconsulting.net> (raw)
In-Reply-To: <eef943b4-43a3-2f46-85a6-bee1eb4ea11d@spamtrap.tnetconsulting.net>
[-- Attachment #1: Type: text/plain, Size: 873 bytes --]
On 2/25/23 12:20 PM, Grant Taylor wrote:
> The magic-abbrev-expand() function seems to be more complex than I
> remember. But perhaps I'm mis-remembering and / or this version is more
> robust than what I was using.
I wanted to provide some follow up on some minor tweaks that I've made
to be compatible with an older version of Zsh; 4.3.10.
I have changed the following:
typeset -gA abbreviations=(
'sclient' 'openssl s_client'
)
To be:
typeset -gA abbreviations
typeset abbreviations=(
'sclient' 'openssl s_client'
)
I have also remarked the following:
emulate -L zsh -o extended_glob
I am indeed getting the desired functionality, even on older versions of
Zsh.
Thank you again Roman for pointing to the documentation and for the
solution.
--
Grant. . . .
unix || die
[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 4017 bytes --]
next prev parent reply other threads:[~2023-03-01 21:24 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-02-25 18:50 Grant Taylor
2023-02-25 18:59 ` Roman Perepelitsa
2023-02-25 19:20 ` Grant Taylor
2023-03-01 21:23 ` Grant Taylor [this message]
2023-02-27 20:27 ` Lawrence Velázquez
2023-02-27 20:31 ` Roman Perepelitsa
2023-03-01 4:42 ` Grant Taylor
2023-03-01 4:51 ` Lawrence Velázquez
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=0d40c23a-75da-662a-3dd2-376095ed2830@spamtrap.tnetconsulting.net \
--to=gtaylor@tnetconsulting.net \
--cc=zsh-users@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).