[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: More fun with IFS

From: Chris F.A. Johnson
Subject: Re: More fun with IFS
Date: Wed, 30 Jan 2013 03:18:48 -0500 (EST)
User-agent: Alpine 2.00 (LMD 1167 2008-08-23)

On Wed, 30 Jan 2013, Andreas Schwab wrote:

"Chris F.A. Johnson" <address@hidden> 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?

   The expansion is done when it is printed.

   Chris F.A. Johnson, <http://cfajohnson.com/>
   Pro Bash Programming: Scripting the GNU/Linux Shell (2009, Apress)
   Shell Scripting Recipes: A Problem-Solution Approach (2005, Apress)

reply via email to

[Prev in Thread] Current Thread [Next in Thread]