Re: [Refdb-users] to quote or not to quote (Curious refdbc -C "getref ..." behaviour)
Status: Beta
Brought to you by:
mhoenicka
|
From: Markus H. <mar...@mh...> - 2004-03-31 17:54:57
|
Marc Herbert writes: > Ah OK. I naively thought that all arguments after the "-C command" > were ignored by refdbc and passed to the "command". > refdbc uses GNU getopt to read the command line (which is also mentioned in the manual). This version of getopt is insensitive to the option/argument order, except when you use '--'. That is, these two are absolutely equivalent: refdbc -h -C getref refdbc -C getref -h > Just like I naively thought that: > > refdbc whatever -h whatever > > would syntax error. Of course, a syntax error could also...=A0display a > short help, as most tools do :-) > With GNU getopt, this is no syntax error, hence no error message. The first "whatever" is the first non-option argument to refdbc. Unless you call a command that utilizes an argument, it will be ignored. Try the following: refdbc mydata.ris -C addref regards, Markus -- Markus Hoenicka mar...@ca... (Spam-protected email: replace the quadrupeds with "mhoenicka") http://www.mhoenicka.de |