From c43576e5f28807b91666f977c8d36646ca929f8d Mon Sep 17 00:00:00 2001 From: batrick Date: Tue, 29 Jun 2010 17:20:21 +0000 Subject: [PATCH] Fix error in documentation. --- docs/scripting.xml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/scripting.xml b/docs/scripting.xml index 3fc4a4e3a..b790ef9ce 100644 --- a/docs/scripting.xml +++ b/docs/scripting.xml @@ -754,10 +754,12 @@ Nmap script database, but should be used cautiously since Nmap may contain explo example of -nmap -sC --script-args user=foo,pass=',{}=bar',whois={whodb=nofollow+ripe},userdb=C:\Some\Path\To\File +nmap -sC --script-args 'user=foo,pass=",{}=bar",whois={whodb=nofollow+ripe},userdb=C:\Some\Path\To\File' - That command results in this Lua table: + Notice that the script arguments are surrounded in single quotes. This + prevents the shell from interpreting the double quotes and doing + automatic string concatenation. The command results in this Lua table: {user="foo",pass=",{}=bar",whois={whodb="nofollow+ripe"},userdb="C:\\Some\\Path\\To\\File"}