Message-ID: <55B56435.5090609@...1147...> Date: Mon, 27 Jul 2015 00:50:29 +0200 From: Jan Just Keijser MIME-Version: 1.0 References: <20150725194558.GM382@...1296...> In-Reply-To: Subject: Re: [Openvpn-devel] Docs or Bug: --push options no longer require double quotes List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit To: "Jonathan K. Bullard" Cc: "openvpn-devel@lists.sourceforge.net" Hi Jonathan, On 25/07/15 22:24, Jonathan K. Bullard wrote: > On Sat, Jul 25, 2015 at 3:45 PM, Gert Doering wrote: >> Hi, >> >> On Sat, Jul 25, 2015 at 01:34:46PM +0100, debbie10t@...277... wrote: >>> As the title states --push no longer requires options to be double quoted. >> Well, *did* it require double quotes at some point? If yes, when? > Double-quotes may not be required in a configuration file, but they > are required (or single-quotes, or the space must be escaped) if the > option is used on a command line, e.g., > > openvpn --push "redirect-gateway def1" ... > > Otherwise "redirect-gateway" is considered the "option" to --push, and > "def1" will be interpreted as something else (a config file? an > error?). > > This is true of **any** single argument to an Openvpn command line > option: if it contains spaces or tabs, it must be enclosed in > double-quotes (or single-quotes, or have the spaces escaped with > backslashes). > > It is also true of arguments in a configuration file if there is more > than one argument to the option and the first argument contains > spaces. For example, --secret file [direction]: > > secret "file-path with spaces" 0 > > I think it is best to always enclose any single argument that contains > spaces with double-quotes, even in a configuration file. This makes it > completely unambiguous, and future-proofs the file if a later version > of OpenVPN allows an optional argument to the option. > very nicely put! and it shows that the text "--push options no longer require double quotes" is actually false. When using "--push" (i.e. a command line argument) you still must use double quotes. When using "push" (i.e. inside a config file) then quotes do not seem necessary for some options, but that does not mean you should not use them. So, neither bug or documentation error. JJK