From: Jim <linux.tech.guy@gmail.com>
To: Bart Schaefer <schaefer@brasslantern.com>
Cc: devs <zsh-workers@zsh.org>
Subject: Re: history expansion - modifiers :h and :t - questions
Date: Tue, 24 Oct 2023 18:24:11 -0500 [thread overview]
Message-ID: <CA+rB6GJbVezqj+15mH_ZTD8BLh9ZUkNOy5t=o+UASpQvROkApQ@mail.gmail.com> (raw)
In-Reply-To: <CAH+w=7abgtoie5hkC5Be1yqxhAsR+qA3eMPFxEjaVNHq9=tnaA@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 548 bytes --]
On Tue, Oct 24, 2023 at 4:56 PM Bart Schaefer <schaefer@brasslantern.com>
wrote:
> On Tue, Oct 24, 2023 at 12:23 PM Jim <linux.tech.guy@gmail.com> wrote:
>
> You can get around this with ${(e):-\${DirPath:h$N}}
>
I believe I only had one occasion of using the 'e' flag before. Forgot
about it.
Thanks for the reminder.
The documentation for :t is being a bit too literal. More accurate
> would be to say that 0 is always the same as having no digit at all.
>
Thanks for the info. That makes more sense.
Regards,
Jim
[-- Attachment #2: Type: text/html, Size: 1188 bytes --]
next prev parent reply other threads:[~2023-10-24 23:25 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-10-24 19:23 Jim
2023-10-24 21:56 ` Bart Schaefer
2023-10-24 23:24 ` Jim [this message]
2023-10-31 19:21 ` Jim
2023-10-26 6:33 ` Stephane Chazelas
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+rB6GJbVezqj+15mH_ZTD8BLh9ZUkNOy5t=o+UASpQvROkApQ@mail.gmail.com' \
--to=linux.tech.guy@gmail.com \
--cc=linuxtechguy@gmail.com \
--cc=schaefer@brasslantern.com \
--cc=zsh-workers@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).