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 20:56:45 -0400

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





------- Additional Comments From BearPerson AT gmx.net 2004-04-25 20:56 -------
Usually quoting is sufficient, but sometimes bigger changes are needed.
cmd $(find something) for example has a rather complicated fix.
The only good fix for this I have found up to date is a
find something |
while read line ; do
array[i]=$line
let i++
done
cmd "${array[@]}"
Sometimes I may even have to redesign shell variables when they just save
things seperated by spaces.
To cut down on my work, I'll just assume that there will never be spells with
spaces in their name.



------- 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