<div dir="ltr"><div dir="ltr"><div dir="ltr"><br><br><div class="gmail_quote"><div dir="ltr">On Fri, Nov 23, 2018 at 10:32 AM Luís Moreira de Sousa <<a href="mailto:luis.de.sousa@protonmail.ch">luis.de.sousa@protonmail.ch</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br><div>I bumped over a glitch with the documentation for r.out.gdal. One of the examples is:<br></div><div>r.out.gdal in=elevation output=elevation.tif type=Float64 \
createopt="COMPRESS=DEFLATE"<br></div><div><br></div><div>But compression is applied only if the double quotes are left out:<br></div><div>r.out.gdal in=elevation output=elevation.tif type=Float64 \
createopt=COMPRESS=DEFLATE<br></div></blockquote><div><br></div><div><br></div><div>Just to follow up on this: Coming to Bash from other languages, this is little strange, but the quotes are really just for the command line interpreter. The underlying program does not get them at all which is actually pretty useful because all quoting is solved by the interpreter and the underlying program does not need to care about specifics of each command line. What the underlying programs gets are the parameters/arguments as they were presented on the command line according to the rules of that given command line. In Bash & comp. you can try it with putting echo in front of your command:<br></div><div><br></div><div>echo program "param1" "param2="value2 "param2"=value2 "param2=value2" param2="value2"</div><div><br></div><div>gives</div><div><br></div><div>program param1 param2=value2 param2=value2 param2=value2 param2=value2</div><div><br></div><div>which what echo actually got.</div><div><br></div><div>Also, you have "\ " (backslash space) in your command. That does not have any meaning there. It is from the documentation where a command was too long to fit into one line nicely (~72 chars), so the author split it using line continuation which is a backslash at the end of the line (another Bash thing).</div><div><br></div><div>HTH,<br></div><div>Vaclav</div><div><br></div><div>PS: If I recall correctly, I learned about the quotes thing here at the grass-dev mailing list! :-)<br></div></div></div></div></div>