Mantis - xmlstarlet
|
|||||
Viewing Issue Advanced Details | |||||
|
|||||
ID: | Category: | Severity: | Reproducibility: | Date Submitted: | Last Update: |
4645 | regular use | feature | always | 2010-12-21 18:51 | 2011-06-15 14:18 |
|
|||||
Reporter: | skayser | Platform: | |||
Assigned To: | dam | OS: | |||
Priority: | normal | OS Version: | |||
Status: | closed | Product Version: | |||
Product Build: | Resolution: | fixed | |||
Projection: | none | ||||
ETA: | none | Fixed in Version: | |||
|
|||||
Summary: | 0004645: Return code in select mode could indicate whether query matches or not | ||||
Description: |
I am trying to use xmlstarlet to test whether XML documents contain certain elements. Here it would be very helpful, if xmlstarlet could indicate via its return code whether or not matching elements were found (just like e.g. grep does). Currently, the return code is always 0 in either case. $ cat test.xml <test> <item name="foo">bar</item> </test> $ xmlstarlet sel -t -c "//item[@name='foo']" test.xml <item name="foo">bar</item> $ echo $? 0 $ xmlstarlet sel -t -c "//item[@name='foo-nomatch']" test.xml $ echo $? 0 |
||||
Steps To Reproduce: | |||||
Additional Information: |
$ pkgparam CSWxmlstarlet VERSION 1.0.2,REV=2010.04.17 |
||||
Relationships | |||||
Attached Files: | |||||
|
|||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2010-12-21 18:51 | skayser | New Issue | |||
2011-01-11 17:02 | dam | Status | new => assigned | ||
2011-01-11 17:02 | dam | Assigned To | => dam | ||
2011-01-11 17:02 | dam | Note Added: 0008698 | |||
2011-01-11 17:02 | dam | Status | assigned => feedback | ||
2011-01-11 18:24 | skayser | Note Added: 0008700 | |||
2011-05-30 19:33 | skayser | Note Added: 0009093 | |||
2011-06-15 14:18 | dam | Note Added: 0009119 | |||
2011-06-15 14:18 | dam | Status | feedback => closed | ||
2011-06-15 14:18 | dam | Resolution | open => fixed |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|