From: "Andrej Borsenkow" <borsenkow.msk@sni.de>
To: "ZSH workers mailing list" <zsh-workers@sunsite.auc.dk>
Subject: Force globbing inside of parameter substitution
Date: Tue, 1 Jun 1999 16:11:08 +0400 [thread overview]
Message-ID: <001701beac27$d4c820e0$21c9ca95@mow.siemens.ru> (raw)
Suppose, I need a list of files sperated by comma. The straightforward way
would be something like
${(j/,/)${:-*}}
Unfortunately, it does not work - it simply results in single `*'.
Using ${(j/,/)$(print *)} does _almost_ wat I'd like ... with two caveats:
1. the file names with spaces are mangled
2. it is potentially less efficient.
Is the use of temporary array the only possibility? (I am mostly interested
in interactive usage, where it should go into one command line).
As a side note: it looks, like GLOB_SUBST does not apply in the above case.
I have globsubst off, but the result of ${:-*} is still globbed. Is it
intentional? I would deem it as a bug.
/andrej
next reply other threads:[~1999-06-01 12:12 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-06-01 12:11 Andrej Borsenkow [this message]
1999-06-01 15:36 ` 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='001701beac27$d4c820e0$21c9ca95@mow.siemens.ru' \
--to=borsenkow.msk@sni.de \
--cc=zsh-workers@sunsite.auc.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).