Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: history expansion - modifiers :h and :t - questions




On Tue, Oct 24, 2023 at 4:56 PM Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
On Tue, Oct 24, 2023 at 12:23 PM Jim <linux.tech.guy@xxxxxxxxx> 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


Messages sorted by: Reverse Date, Date, Thread, Author