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

Re: Conditional Bug?



On Mon 29.Oct.07 16:37, Joel J. Adamson wrote:
Peter Stephenson <pws@xxxxxxx> writes:
Joel J. Adamson wrote:
What is the proper way to refer to all command line arguments?

You probably want "$@", but I don't really understand what you mean by
"not working", since they do :-).

Okay, I've done some more experimenting (including setting the
variables to arrays and other things) and discovered that a big
problem is that when the filenames get through to the tar command,
they are quoted, and thus the tilde does not expand.

You seem to be needing GLOB_SUBST here, which is enabled by default in zsh emulation mode. You can temporarily enable it just for this expansion using the tilde:

print "${~array[@]}"

--
redondos

Attachment: signature.asc
Description: Digital signature



Messages sorted by: Reverse Date, Date, Thread, Author