From: Jim <linux.tech.guy@gmail.com>
To: zsh <zsh-users@zsh.org>
Subject: "history" modifier question
Date: Thu, 4 May 2023 01:32:08 -0500 [thread overview]
Message-ID: <CA+rB6GKpL_5VPVcb_fd9cuprjA6dpmnoKX0JXKj5HsxWrNQ2sg@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 782 bytes --]
Hello,
Trying to use history modifier 'h [ digit ]' (the following also applies to
't [digit ]'),where digit is a scalar or integer, ( e.g. ${PWD:h${N}} ) to
step
through a path via a loop, but this doesn't appear to be allowed. Tried
multiple ways of doing this including quoting.
This seems like a logical use of a parameter, but 'my' logic, sometimes,
doesn't match reality.
Is there a way of doing this or is this just not possible. If not could
someone
tell me why, I would like to understand what I'm missing here. The man
page, AFAICT, doesn't say one way or the other if this is possible. Unless,
"digit" is explicit here.
FYI, I did come up with an alternative method by using an array and split.
ZSH_VERSION: 5.9
Thanks for your time, and with regards,
Jim Murphy
[-- Attachment #2: Type: text/html, Size: 1120 bytes --]
next reply other threads:[~2023-05-04 6:33 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-05-04 6:32 Jim [this message]
2023-05-05 0:19 ` Bart Schaefer
2023-05-05 0:50 ` Jim
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=CA+rB6GKpL_5VPVcb_fd9cuprjA6dpmnoKX0JXKj5HsxWrNQ2sg@mail.gmail.com \
--to=linux.tech.guy@gmail.com \
--cc=linuxtechguy@gmail.com \
--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).