Skip to Content.
Sympa Menu

sm-sorcery-bugs - [SM-Sorcery-Bugs] [Bug 6539] handling of bash variables with spaces

sm-sorcery-bugs AT lists.ibiblio.org

Subject: Bugs for Sorcery are reported here

List archive

Chronological Thread  
  • From: bugzilla-daemon AT metalab.unc.edu
  • To: sm-sorcery-bugs AT lists.ibiblio.org
  • Subject: [SM-Sorcery-Bugs] [Bug 6539] handling of bash variables with spaces
  • Date: Sun, 25 Apr 2004 23:51:35 -0400

http://bugs.sourcemage.org/show_bug.cgi?id=6539





------- Additional Comments From pmahon AT sourcemage.org 2004-04-25 23:51
-------
That snippet will not work properly. The while loop is executed in a subshell,
and as such, the environment changes it makes are only done in the subshell,
not
the parent. Two alternatives:
while read LINE ; do
...
done < <(find foo)

and having find quote the output.



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.




Archive powered by MHonArc 2.6.24.

Top of Page