Edgewall Software
Modify

Opened 15 years ago

Closed 15 years ago

#360 closed defect (fixed)

Quote (") is filtered in arguments.

Reported by: Joeri van Oostveen Owned by: osimons
Priority: major Milestone: 0.6
Component: General Version: dev
Keywords: Cc: joeri@…
Operating System: Mac OS X

Description

I have a command where I need to add a double quote ("), but the quote is filtered and the command failes to execute properly.

In plain shell, the command is build like this:

mxml [...skipped...] -define+=CONFIG::ColorSet,"Purple"

The "" are needed in the command, when I add these in the args attribute (which has a single quote) I notice in the slave (running with -v) the quotes are filtered away.

Is there a way to force these quotes? (If no, please add :) ).

Environment:

  • Bitten 0.6dev-r567
  • Trac 0.11.3
  • MacOS X 10.4, Python 2.5

Attachments (0)

Change History (4)

comment:1 Changed 15 years ago by Joeri van Oostveen <joeri@…>

Escaping (\") the quotes works (but first time I misplaced the argument itself).

So this ticket can be closed (maybe it can be placed in the docs how to escape certain characters?).

comment:2 Changed 15 years ago by osimons

  • Owner changed from cmlenz to osimons

Is that type of escaping the recommend approach? The recipes are XML files, and the general way of quoting conflicting characters in XML is to quote them using entities or similar. I use &quot; as in this example:

<sh:exec executable="python" args="-c 'print &quot;Hello, world&quot;'" />

If the docs don't contain information about quoting/escaping, it needs to be updated with recommended approach. I'll check, but will of course appreciate insight on the ticket from experienced recipe builders...

comment:3 Changed 15 years ago by osimons

Note to self: See also link in comment:ticket:359:1 (useful for docs).

comment:4 Changed 15 years ago by osimons

  • Resolution set to fixed
  • Status changed from new to closed

I've added basic docs for XML quoting in [662].

Add Comment

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain osimons.
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.