Dear Markus <br><br>Thanks for the reply. I am aware of the -g option, i did not pretent to change<br>the behaviour of -p or -g options in v.db.connect, i suppose that a new option<br>which behaves like g.region -p could a nice solution (but no very consistent) so<br>

nobody is hurt with the proposed change.<br><br>Regards<br>Patricio<br><br><br><div class="gmail_quote">2010/7/14 Markus Neteler <span dir="ltr">&lt;<a href="mailto:neteler@osgeo.org">neteler@osgeo.org</a>&gt;</span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Wed, Jul 14, 2010 at 6:19 AM, Patricio Toledo<br>
&lt;<a href="mailto:patricioantoniotoledo@gmail.com">patricioantoniotoledo@gmail.com</a>&gt; wrote:<br>
&gt; Dear GRASS Developers<br>
&gt;<br>
&gt; This is a petition:<br>
&gt;<br>
&gt; Is it possible to add a option to v.db.connect (like g.region -p) so<br>
&gt; the output will be somelike:<br>
&gt;<br>
&gt;    $ v.db.connect -p map=test layer=2<br>
&gt;    driver=dbf<br>
&gt;    database=/the/database<br>
&gt;    table=thetable<br>
&gt;    column=thecolumn<br>
&gt;    layer=2<br>
&gt;<br>
&gt; i know -p actually does something very similar but this -p output is very useful<br>
&gt; in g.region, so one can do inside a shell-script:<br>
&gt;<br>
&gt;    $eval `v.db.connect -p map=test`<br>
&gt;<br>
&gt; to recover database connection parameters.<br>
<br>
There is -g<br>
  -g   Print all map connection parameters and exit in shell script style<br>
        Format: layer[/layer name] table key database driver<br>
but it doesn&#39;t work as advertised (it is not shell script style!):<br>
<br>
v.db.connect -g map=streets_wake<br>
1 streets_wake cat /home/neteler/grassdata/nc_spm_08/PERMANENT/dbf/ dbf<br>
<br>
even with fs=&quot;=&quot; it makes a mess:<br>
v.db.connect -g map=streets_wake  fs=&quot;=&quot;<br>
1=streets_wake=cat=/home/neteler/grassdata/nc_spm_08/PERMANENT/dbf/=dbf<br>
<br>
Essentially, the line breaks are missing.<br>
Should be a simple thing to fix.<br>
<font color="#888888"><br>
Markus<br>
</font></blockquote></div><br>