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

Re: joining array elements



Hi Oliver,

Yes!  $~~foo did the trick.
I am grateful to all the helpful advices.
Thanks again.

Wataru Kagawa

On 2006/01/12, at 21:39, Oliver Kiddle wrote:

Wataru Kagawa wrote:
foo=$( printf '%s\n' David Matt ${(j:[return]:)~~usernames} )
gives me no output (with the 'nullglob' option set).

It works for me. How are you going about inspecting the value of the
variable foo after this?

try
  echo $~~foo
or
  typeset -p foo

Oliver


This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you.



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