escaping apostrophes (partly fixed)
"Markus Hoenicka" <[email protected]>
| Newsgroups | gmane.text.refdb.general |
|---|---|
| Message-ID | <[email protected]> |
Hi all, Dan reported recently that there is a problem running queries containing e.g. author names with an apostrophe. The tokenizing functions simply didn't handle escaped apostrophes at all, making this a bit of a pain. I've implemented the missing code for the getref command. In order to query for values containing apostrophes, do the following: interactive mode: Putting the value in quotes is not necessary as the backslash is passed to the server as is. However, it does not hurt, so both of these work: refdbc: getref :AU:=E\'ccles,P. refdbc: getref :AU:="E\'ccles,P." command line: Keep in mind that the shell consumes the backslash unless it is protected by quotes: refdbc -C getref :AU:="E\'ccles,P." I'll have to fix (or at least test) related commands like getkw, getau and so on as well. This is likely to happen over the weekend. regards, Markus -- Markus Hoenicka [email protected] (Spam-protected email: replace the quadrupeds with "mhoenicka") http://www.mhoenicka.de ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV