[Top][All Lists]

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

Re: Another mapfile question.

From: Chris F.A. Johnson
Subject: Re: Another mapfile question.
Date: Sat, 6 Aug 2011 18:34:20 -0400 (EDT)
User-agent: Alpine 2.00 (NEB 1167 2008-08-23)

On Fri, 5 Aug 2011, Steven W. Orr wrote:

One trick that bit me a while back, is that the order of declaring IFS and old_IFS is important. It has to be done in this order:

   typeset -r old_IFS="$IFS"  # Must come first
   typeset IFS


   I always use local and don't change it back within a function:

 local IFS=bar
 : whatever

   The original value is not changed in the calling script.

   Chris F.A. Johnson                      <http://cfaj.freeshell.org>
   Shell Scripting Recipes: A Problem-Solution Approach (2005, Apress)

reply via email to

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