Hi Peter,Thank you for the tip. I would like to place the expansion into a variable, however, I am having a trouble.
% usernames=( Bob Sara Tim ) % print -R ${(j:[return]:)~~usernames} Bob[return]Sara[return]Tim However, % foo=$( printf '%s\n' David Matt ${(j:[return]:)~~usernames} ) % echo $foo I appreciate any suggestions. Wataru Kagawa On 2006/01/12, at 18:10, Peter Stephenson wrote:
Wataru Kagawa wrote:I noticed that to get the joining to work, I have to unset the 'globsubst' option.You can use ${(j:[return]:)~~usernames} to get that effect. -- Peter Stephenson <pws@xxxxxxx> Software Engineer CSR PLC, Churchill House, Cambridge Business Park, Cowley RoadCambridge, CB4 0WZ, UK Tel: +44 (0)1223 692070Your mail client is unable to display the latest news from CSR. To access our news copy this link into a web browser: http:// www.csr.com/email_sig.html