zsh-users
 help / color / mirror / code / Atom feed
From: Roman Neuhauser <neuhauser@sigpipe.cz>
To: Paul <GammaFunction@vivaldi.net>
Cc: Zach Riggle <zachriggle@gmail.com>, Zsh Users <zsh-users@zsh.org>
Subject: Re: Silly question on :h and = expansion
Date: Tue, 17 Aug 2021 23:39:36 +0200	[thread overview]
Message-ID: <YRwsmI6gk47HSdRk@isis.sigpipe.cz> (raw)
In-Reply-To: <CDM3XCX50UDU.2QYA9LTROCG5D@kbvv>

# GammaFunction@vivaldi.net / 2021-08-17 16:31:42 -0500:
> On Tue Aug 17, 2021 at 12:39 PM CDT, Zach Riggle wrote:
> > But I was hoping there was a way to combine the "=" and ":h" expansion
> > into one line. As best I can tell, there isn't -- but I figured it
> > was worth asking.
> 
> In fact there is!  Modifiers can also be used as globbing flags:
> 
>     cd =foo(:h)

Perl: There Is More Than One Way to Do It,
Zsh: There's Always One More Way to Do It.

also, doh!

-- 
roman


      reply	other threads:[~2021-08-17 21:40 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-17 17:39 Zach Riggle
2021-08-17 17:59 ` Bart Schaefer
2021-08-17 21:35   ` Roman Neuhauser
2021-08-17 21:49     ` Bart Schaefer
2021-08-17 23:27       ` Zach Riggle
2021-08-18  0:12         ` Bart Schaefer
2021-08-18  2:55           ` Mikael Magnusson
2021-08-18  3:25             ` Bart Schaefer
2021-08-17 21:31 ` Paul
2021-08-17 21:39   ` Roman Neuhauser [this message]

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=YRwsmI6gk47HSdRk@isis.sigpipe.cz \
    --to=neuhauser@sigpipe.cz \
    --cc=GammaFunction@vivaldi.net \
    --cc=zachriggle@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).