Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: avoid eval?
- X-seq: zsh-users 23233
- From: Marc Chantreux <khatar@xxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: avoid eval?
- Date: Sun, 11 Mar 2018 23:53:21 +0100
- Dkim-filter: OpenDKIM Filter v2.10.3 aurora-borealis.phear.org A563B100C5
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/simple; d=phear.org; s=20180217; t=1520808805; bh=gi7jyzhBAnhrwIphBC7GVHx3ksgbeLeACin/4E6nuG0=; h=Date:From:To:Subject:References:In-Reply-To:From; b=SwIFf2YAIwnE/uMne3G0hhDF/6MTvSSj0YqYSzNIx8qDQxOXdVPK9buM78xIk1PmH mtNhMqgZP2lPH3CNF0t6Kw+b/BYDL8DWvC1rWFDD4qG0UyqNs7OOSHfdooEhorbaCh UqC31aZyg6g+h+mTPoToqs23au+z8lSig5ApfkSOi9abffjH906MJgneNWVqE0fSq6 nKPWE1lfRoBVBSNoJBc+jJ7eQRHuQK+IE0G9HZ8plJ54MhdaNb8JU9YKeCD4SGtlDG guowGlRGRmZQNXbKSG335SrcMygdxMvu1Vq1/DOGqh31DFmUtQoKuOzv9iV8kiFLQM 1qhtMwFztdYaA==
- In-reply-to: <059f4f08-7f7f-25d8-dfeb-1653e3c8ba95@eastlink.ca>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- List-unsubscribe: <mailto:zsh-users-unsubscribe@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author