From: Marc Chantreux <khatar@phear.org>
To: zsh-users@zsh.org
Subject: Re: avoid eval?
Date: Sun, 11 Mar 2018 23:53:21 +0100 [thread overview]
Message-ID: <20180311225321.shqrx7idd57ie62d@prometheus.u-strasbg.fr> (raw)
In-Reply-To: <059f4f08-7f7f-25d8-dfeb-1653e3c8ba95@eastlink.ca>
hello,
> ... within the function? The way I have it is surely a bit abominable,
> somehow 'cp' needs to know that "now is the time" is one argument. I should
> know this.
"$@" expands as an array and "$*" expands as a string so
func () cp oldfile "$*"
should probably do what you expect.
regards
marc
next prev parent reply other threads:[~2018-03-11 23:02 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-03-11 20:48 Ray Andrews
2018-03-11 22:53 ` Marc Chantreux [this message]
2018-03-12 0:43 ` Ray Andrews
2018-03-13 2:13 ` Ray Andrews
2018-03-13 2:17 ` Eric Cook
2018-03-13 16:36 ` (some tips about variables) " Marc Chantreux
2018-03-13 17:50 ` Ray Andrews
2018-03-13 20:39 ` Marc Chantreux
2018-03-13 21:50 ` Ray Andrews
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=20180311225321.shqrx7idd57ie62d@prometheus.u-strasbg.fr \
--to=khatar@phear.org \
--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).