On 05 Aug 2011, at 16:32, Steven W. Orr wrote:
> On 8/5/2011 9:08 AM, Maarten Billemont wrote:
>>> IFS=
>>> aa=()
>>> while read line
>>> do
>>> aa+=("$line")
>>> done< fn
>>
>> You should really put that IFS= on your 'read', so as not to break the
>> default wordsplitting for the rest of you
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:
foo()
{
typeset -r old_IFS="$IFS" # Must come first
typeset IFS
stuff...
}
I always use local and don't ch
On 8/2/11 10:08 AM, Maarten Billemont wrote:
> In the following snippet, I expect the two ls' to give the same output.
> However, it appears the process substitution's temporary file sometimes
> vanishes for the second. Can someone explain why and whether this is the
> desired behavior or not?