Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: avoid eval?



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