zsh-users
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: zsh-users@sunsite.dk (Zsh users list)
Subject: Re: assigning parameters and globbing
Date: Wed, 05 Apr 2006 08:00:56 -0700	[thread overview]
Message-ID: <060405080056.ZM3087@torch.brasslantern.com> (raw)

On Apr 5, 10:24am, Peter Stephenson wrote:
}
} I'd probably use an intermediate array.
} 
}   local -a files
}   files=(*)
}   export BLAH=${files[-1]}

Also, arrays can be placed into the environment of builtin commands,
even though they can't be exported to the "permanent" environment that
is shared by external commands.  So this works:

    files=(*) eval 'export BLAH=$files[-1]'


             reply	other threads:[~2006-04-05 15:00 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-04-05 15:00 Bart Schaefer [this message]
  -- strict thread matches above, loose matches on Subject: below --
2006-04-06 12:16 Vincent Lefevre
2006-04-06  9:27 Peter Stephenson
2006-04-05 23:18 Vincent Lefevre
2006-04-05  9:24 Peter Stephenson
2006-04-04 22:34 Vincent Lefevre
2006-04-04 12:58 Peter Stephenson
2006-04-04 12:01 Vincent Lefevre

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=060405080056.ZM3087@torch.brasslantern.com \
    --to=schaefer@brasslantern.com \
    --cc=zsh-users@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).