Opened 4 years ago

Last modified 4 years ago

#4756 assigned defect

"incomplete quoted text" ... parsing error?

Reported by: Elaine Meng Owned by: Greg Couch
Priority: moderate Milestone:
Component: Command Line Version:
Keywords: Cc: Tom Goddard
Blocked By: Blocking:
Notify when closed: Platform: all
Project: ChimeraX

Description

After setup commands:

open 2gbp
open 2fw0
mm #2 to #1
morph #1,​2

...I can execute the following in a command file

perframe "save model$1.obj models #3"
coordset #3 1,5; wait 5
~perframe

But I cannot execute them all as one line

perframe "save model$1.obj models #3"; coordset #3 1,5; wait 5; ~perframe

error: Incomplete quoted text

tested in UCSF ChimeraX version: 1.3.dev202105250411 (2021-05-25)

Change History (2)

comment:1 by Elaine Meng, 4 years ago

The one-line approach does work if there is a space between the quotation mark and the semicolon. Eric just suggested trying that. However, seems like it should also work without the space.

comment:2 by Greg Couch, 4 years ago

The logic is for quotes is to not terminate a string if they aren't followed by a space or the end of the line. So 'It's a bird! It's a plane!' works as one quoted value. An exception can be made for a semicolon. Would the semicolon need to be followed by a space or end of line?

Note: See TracTickets for help on using tickets.