zsh-users
 help / color / mirror / code / Atom feed
From: Clint Adams <clint@zsh.org>
To: "Jörg Ziefle" <gt4556a@prism.gatech.edu>
Cc: zsh-users@sunsite.dk
Subject: Re: problem/bug: array definition from command (backticks) [long]
Date: Tue, 26 Jun 2001 23:12:14 -0400	[thread overview]
Message-ID: <20010626231214.A25363@dman.com> (raw)
In-Reply-To: <20010626220704.A25876@acmey.gatech.edu>; from gt4556a@prism.gatech.edu on Tue, Jun 26, 2001 at 09:42:38PM -0400

> With the following line in my ~/.zshrc, I specify the mailfolders that I
> want zsh to watch for new mail:
> 
> mailpath=(`~/bin/printmailfolders-zsh.pl`)

If you read the docs on command substitution, you'll see that

	If  the  substitution  is  not
	enclosed in double quotes, the output is
	broken into words using the IFS parameter.


I think that the following accomplishes what you want, except for checking
if the file is ASCII.

mailpath=(${(f)"$(for i in $HOME/{Mail,savenews}/[^.]*(.rNL+0) ; print $i\?New mail in ${i:t})"})


  reply	other threads:[~2001-06-27  3:12 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-06-27  1:42 Jörg Ziefle
2001-06-27  3:12 ` Clint Adams [this message]
2001-06-27  3:24   ` problem/bug: array definition from command (backticks) - solved Jörg Ziefle
2001-06-27  6:53     ` Bart Schaefer

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=20010626231214.A25363@dman.com \
    --to=clint@zsh.org \
    --cc=gt4556a@prism.gatech.edu \
    --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).