Skip to Content.
Sympa Menu

sm-sorcery-bugs - [SM-Sorcery-Bugs] [Bug 7455] New: config_query_list prepends empty space at beginning of list

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 7455] New: config_query_list prepends empty space at beginning of list
  • Date: Tue, 5 Oct 2004 00:09:31 -0400

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

Summary: config_query_list prepends empty space at beginning of
list
Product: Sorcery
Version: Test
Platform: All
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: subroutines
AssignedTo: vlmarek AT volny.cz
ReportedBy: eric AT sandall.us
CC: acedit AT armory.com,sm-sorcery-bugs AT lists.ibiblio.org


I've setup a list using config_query_list of variables to pass to a configure
switch, but I have to remove the beginning space (using LIST=${LIST/# /},
thanks
to Andrew Stitt) so that it works.

e.g.
CONFIGURE:
config_query_option RAPTOR_LIST "Enable RDF XML?" y "rdfxml"
""
config_query_option RAPTOR_LIST "Enable N-Triples?" y "ntriples"
""
config_query_option RAPTOR_LIST "Enable Turtle?" y "turtle"
""
config_query_option RAPTOR_LIST "Enable RSS TagSoup?" y "rss-tag-soup"
""
RAPTOR_LIST="${RAPTOR_LIST/# /}"

BUILD:
OPTS="$OPTS --enable-parsers=\"$RAPTOR_LIST\"" &&
default_build

Without RAPTOR_LIST="${RAPTOR_LIST/# /} the persistence file has:
RAPTOR_LIST=" rdfxml ntriples turtle rss-tag-soup"
with it:
RAPTOR_LIST="rdfxml ntriples turtle rss-tag-soup"

The whitespace at the beginning breaks configure as:
./configure --enable-parsers=" rdfxml ntriplets turtle"
is different from:
./configure --enable-parsers="rdfxml ntriplets turtle"



------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.



  • [SM-Sorcery-Bugs] [Bug 7455] New: config_query_list prepends empty space at beginning of list, bugzilla-daemon, 10/05/2004

Archive powered by MHonArc 2.6.24.

Top of Page