This is an automated notification sent by LCG Savannah.
It relates to:
task #8380, project CDS Invenio
==============================================================================
LATEST MODIFICATIONS of task #8380:
==============================================================================
Follow-up Comment #1, task #8380 (project cdsware):
Note that (Benoit report):
(gnu_)?getopt strips the arguments from all quotes regardless of how many
they are, e.g. "'test1, test2','test3'" is converted to
"test1, test2,test3" (f.cking alpine line justification) making it impossible
to correctly split the string into collection names.
The only option is to pass the collections list as a string i.e.:
$ my_fantastic_exec -c "'test1','test2'" (which is bad.)
==============================================================================
OVERVIEW of task #8380:
==============================================================================
URL:
<http://savannah.cern.ch/task/?8380>
Summary: bibindex -c, --collection should correctly deal
with commas
Project: CDS Invenio
Submitted by: skaplun
Submitted on: 2008-11-07 10:48
Should Start On: 2008-11-07 00:00
Should be Finished on: 2008-11-07 00:00
Category: BibIndex
Priority: 5 - Normal
Status: None
Privacy: Public
Percent Complete: 0%
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
Effort: 0.00
_______________________________________________________
BibIndex --help says:
[...]
Indexing options:
[...]
-c, --collection=c1[,c2] select according to collection
[...]
The code to elaborate the collection parameter is simply using ',' as a
separator regardless if user has used (double) quotes to protect a collection
name that has commas or spaces inside.
A generic solution to interpret such string (maybe to be addedd in textutils)
should be developed and plugged to BibIndex CLI parser (and other tools that
expect list of collections or similar).
_______________________________________________________
Follow-up Comments:
-------------------------------------------------------
Date: 2008-11-07 13:13 By: Samuele Kaplun <skaplun>
Note that (Benoit report):
(gnu_)?getopt strips the arguments from all quotes regardless of how many
they are, e.g. "'test1, test2','test3'" is converted to
"test1, test2,test3" (f.cking alpine line justification) making it impossible
to correctly split the string into collection names.
The only option is to pass the collections list as a string i.e.:
$ my_fantastic_exec -c "'test1','test2'" (which is bad.)
_______________________________________________________
Carbon-Copy List:
CC Address | Comment
------------------------------------+-----------------------------
2195 | -SUB-
==============================================================================
This item URL is:
<http://savannah.cern.ch/task/?8380>
_______________________________________________
Message sent via/by LCG Savannah
http://savannah.cern.ch/