zsh-workers
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: zsh-workers@sunsite.dk
Subject: Re: The (e) glob qualifier and NO_NOMATCH
Date: Thu, 22 Jun 2006 09:51:21 -0700	[thread overview]
Message-ID: <060622095121.ZM19569@torch.brasslantern.com> (raw)
In-Reply-To: <3849.1150985542@dcle12>

On Jun 22,  4:12pm, Oliver Kiddle wrote:
}
} Given that you can do something like:
} 
}   for remote in $(forcemount '/net/r*'); do ...
} 
} is your point purely that you think the syntax would be nice or are you
} thinking in terms of being able to pass the function down through the
} completion system so that it is only run if and when _path_files expands
} the pattern?

I was just using the completion system as an example of a case where a
nonexistent file is forced to come into existence so it can later be
globbed.  I'm not otherwise thinking in terms of completion at all.

Rather I'm thinking in terms of the "search upwards but stop at the
first file" glob request posted to zsh-users earlier this week.  I
wanted to say

  up() { reply=( (../)#$~REPLY(Odon) ); reply=( $reply[1] ) }

  less adr*(+up)

but "up" is never called because adr* has no matches in the current dir.
 
} In many respects using (e) and modifying $reply makes it more of a
} modifier than a qualifier. Perhaps we should have had a :e modifier.

We already do, it just doesn't mean "eval" ....


  reply	other threads:[~2006-06-22 16:53 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-06-21 13:49 Bart Schaefer
2006-06-22 14:12 ` Oliver Kiddle
2006-06-22 16:51   ` Bart Schaefer [this message]
2006-06-23  9:53     ` Oliver Kiddle

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=060622095121.ZM19569@torch.brasslantern.com \
    --to=schaefer@brasslantern.com \
    --cc=zsh-workers@sunsite.dk \
    /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).