"Chris F.A. Johnson" <ch...@cfajohnson.com> writes: > On Wed, 30 Jan 2013, Andreas Schwab wrote: > >> "Chris F.A. Johnson" <ch...@cfajohnson.com> writes: >> >>>> var=${a[*]} ... one two three four # bad >>> >>> Looks good to me. It expands to multiple words, just as an unquoted >>> $* would do. >> >> But no field splitting is performed on the expansion, so why are the >> colons lost? > > How is it printed if it is not expanded?
??? Parameter expansion and field splitting are separate steps of word expansion. Andreas. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."