zsh-users
 help / color / mirror / code / Atom feed
From: Ray Andrews <rayandrews@eastlink.ca>
To: Zsh Users <zsh-users@zsh.org>
Subject: this should be easy variable expansion including globs.
Date: Wed, 18 Jan 2017 08:13:54 -0800	[thread overview]
Message-ID: <52be7a1a-2da8-a4b6-905a-3eea694763c3@eastlink.ca> (raw)

$ var1=var1

$ var2=var2

$ var3=var3

$ var99=var99

$ for f ($var*) echo $f


var1

var2

var3

var99


... How do I do what I'm trying to do there?  This reminds me a bit of 
my previous issue with 'whence -m' where the glob refers to a pattern, 
not a list of files but I can't get the syntax right. Everything I 
google presumes the latter (file globbing).




             reply	other threads:[~2017-01-18 16:14 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-01-18 16:13 Ray Andrews [this message]
2017-01-18 18:46 ` Peter Stephenson
2017-01-18 19:51   ` Ray Andrews
2017-01-18 20:12     ` Nikolay Aleksandrovich Pavlov (ZyX)
2017-01-18 20:30       ` Ray Andrews
     [not found]     ` <484161484770354__27207.6165573255$1484770824$gmane$org@web26m.yandex.ru>
2017-01-18 20:20       ` Daniel Shahaf

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=52be7a1a-2da8-a4b6-905a-3eea694763c3@eastlink.ca \
    --to=rayandrews@eastlink.ca \
    --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).