Skip to Content.
Sympa Menu

sm-sorcery-bugs - [SM-Sorcery-Bugs] [Bug 8686] Error when running `gaze search <spell>`

sm-sorcery-bugs AT lists.ibiblio.org

Subject: Bugs for Sorcery are reported here

List archive

Chronological Thread  
  • From: bugzilla-daemon AT bugs.sourcemage.org
  • To: sm-sorcery-bugs AT lists.ibiblio.org
  • Subject: [SM-Sorcery-Bugs] [Bug 8686] Error when running `gaze search <spell>`
  • Date: Wed, 8 Jun 2005 09:17:56 -0700 (PDT)

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





------- Additional Comments From acedit AT armory.com 2005-06-08 09:17 -------
I understand your patch, but the problem is, there is no guarentee that the
size
of a grimoire or section will not grow too large, in which case we have the
same
issue again.

I think there are two seperate issues here. One is, in the for spell in `...`;
do construct the ` ` generates more than 32768 characters and makes bash upset
(maybe bash 3.0 is better about this though, i cannot get it to fail, so maybe
they do something smarter than older bash versions).

The second problem is with xargs. According to the manual it has a default of
131072 for --max-chars. Thats too much for your system which has a limit of
32768 characters. You patch inadvertantly chooses input to xargs thats below
this theshhold, thats what makes it work.

xargs whole job is to break input up into chunks that dont exceed the maximum
character limit. So I would try the original code with the massive for loop
and
just pass xargs -s 32768. Perhaps simply recompiling findutils will solve the
problem, or theres a configure switch you can give it in the hardened
grimoire?



--
Configure bugmail: http://bugs.sourcemage.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.




Archive powered by MHonArc 2.6.24.

Top of Page