sm-sorcery AT lists.ibiblio.org
Subject: Discussion of Sorcery related topics
List archive
- From: Sergey A Lipnevich <sergeyli AT pisem.net>
- To: Dufflebunk <dufflebunk AT dufflebunk.homeip.net>
- Cc: sm-sorcery AT lists.ibiblio.org
- Subject: Re: [SM-Sorcery]$IFS
- Date: Mon, 21 Oct 2002 08:09:04 -0400
See my note on this in the ChangeLog. That's a harsh reality :-( of bash, but it it possible to circumvent it in many specific cases.
Dufflebunk wrote:
One odd side effect that I just found is that:
echo $foo | while read i ; do
#This is all executed in a sub shell!
done
Meaning environment modified inside the loop will not persist after the
loop. Example:
a="a"
echo -e "a\nb" | while read i ; do a="${a}${i}" echo $a
done
echo "Final: $a"
Here is the output:
aa
aab
Final: a
Not what you would expect. Although it makes sense when you look at it
closely, it still surprised me, so I though it might help others too.
On Sat, 2002-10-19 at 01:10, Sergey A. Lipnevich wrote:
Hi All,
In my working copy I have managed to ridden cast, libdepends, libmisc, and libcodex, of $IFS. It all looks good and I'm doing /a lot/ of tests on virtually all my changes. Any objections to committing this sometime tomorrow?
Also, it solves the following bug in sorcery 20021018: when there is an optional_depends with the spell that's not installed, no other optional_depends below it get called.
And it looks much better without $IFS ;-).
Sergey.
_______________________________________________
SM-Sorcery mailing list
SM-Sorcery AT lists.ibiblio.org
http://lists.ibiblio.org/mailman/listinfo/sm-sorcery
------------------
Get free mailbox 20 Mb at http://www.hotbox.ru
-
[SM-Sorcery]$IFS,
Sergey A. Lipnevich, 10/19/2002
-
Re: [SM-Sorcery]$IFS,
Dufflebunk, 10/19/2002
- Re: [SM-Sorcery]$IFS, Sergey A. Lipnevich, 10/20/2002
-
Re: [SM-Sorcery]$IFS,
Sergey A. Lipnevich, 10/20/2002
- Re: [SM-Sorcery]$IFS, Dufflebunk, 10/20/2002
-
Re: [SM-Sorcery]$IFS,
Dufflebunk, 10/21/2002
-
Re: [SM-Sorcery]$IFS,
Sergey A Lipnevich, 10/21/2002
- Re: [SM-Sorcery]$IFS, Jens Laas, 10/21/2002
-
Re: [SM-Sorcery]$IFS,
Sergey A Lipnevich, 10/21/2002
-
Re: [SM-Sorcery]$IFS,
Dufflebunk, 10/19/2002
Archive powered by MHonArc 2.6.24.