Quotes in addlink

"Markus Hoenicka" <[email protected]> Fri, 22 May 2009 22:54:03 +0200
Newsgroups gmane.text.refdb.general
Message-ID <[email protected]>
Torsten Bronger writes:
 > Hallöchen!
 > 
 > If I connect to refdbd using sockets, why does the command
 > 
 >     addlink -u user -w password :NCK:=django-refdb-offprints-1 :CK:=Bld2006
 > 
 > not work, however,
 > 
 >     addlink -u user -w password ":NCK:=django-refdb-offprints-1 :CK:=Bld2006"
 > 
 > does work?
 > 

I haven't analyzed this situation in detail, but I suspect it is
caused by the use of getopt() to parse the command. Looks like getopt
attempts to interpret the characters of the query string preceded by a
dash as option characters unless they are enclosed in quotes. Let me
know if this does not explain your experiences in full, I'd then have
to have a second look.


regards,
Markus

-- 
Markus Hoenicka
[email protected]
(Spam-protected email: replace the quadrupeds with "mhoenicka")
http://www.mhoenicka.de

------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, & 
iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian
Group, R/GA, & Big Spaceship. http://www.creativitycat.com