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.