From e55589c5cc913ed79d7ecaf7c9ad1770418e659a Mon Sep 17 00:00:00 2001 From: batrick Date: Wed, 7 Jul 2010 17:26:48 +0000 Subject: [PATCH] Another change to this from r18458 that adds a note to check if you need to escape quotes differently based on which shell you use. --- docs/scripting.xml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/docs/scripting.xml b/docs/scripting.xml index b790ef9ce..9af924c72 100644 --- a/docs/scripting.xml +++ b/docs/scripting.xml @@ -757,9 +757,11 @@ Nmap script database, but should be used cautiously since Nmap may contain explo nmap -sC --script-args 'user=foo,pass=",{}=bar",whois={whodb=nofollow+ripe},userdb=C:\Some\Path\To\File' - 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: + Notice that the script arguments are surrounded in single quotes. For the + Bash shell, this prevents the shell from interpreting the double quotes + and doing automatic string concatenation. Naturally, different shells may + require you to escape quotes or to use different quotes. See your + relevant manual. The command results in this Lua table: {user="foo",pass=",{}=bar",whois={whodb="nofollow+ripe"},userdb="C:\\Some\\Path\\To\\File"}