The dialog for defining toolbar buttons (and probably the dialog for defining user commands in the command browser as well) has some peculiar behavior where it silently removes pairs of single quotes from the parameter field, if the single quotes are at the beginning and the end of the parameter string.
Observed behavior: TC silently messing with the Parameter field where the overall parameter string starts and ends with a single quote.
Expected behavior: TC keeping the Parameter field as specified by the user without altering it
How to reproduce:
Create a new toolbar button with the following command an parameter (what program you choose as command does not really matter, though)
Command
Code: Select all
X:\foobar
Code: Select all
'snafu'
Close the toolbar button creation dialog by clicking OK.
Then edit the toolbar button again. You'll see the single quotes are gone. This should not happen. The input of the user has to be preserved as is. TC should not silently manipulate the command line parameter string.
Note that this happens only for pairs of single quotes where one quote is at the beginning and one quote is at the end of the overall parameter string.
For example, enter this parameter string:
Code: Select all
'foo' 'bar'
Code: Select all
foo' 'bar
Note that a single quote has to be both at the beginning AND the end of the overall parameter string. For example, TC won't try to remove single quotes from this parameter definition (note the absence of a single quote at the very end of the overall parameter string):
Code: Select all
'foo' bar
P.S.: Just to make clear, i am not asking for help or workarounds. I found workarounds (by surrounding the parameter string with the single quote pair with double quotes, adding another meaningless parameter argument without single quotes at the end of the parameter string). Another workaround could be to move such single-quoted parameter up into the command field, where possible. But even having found a workaround, i take issue with TC silently altering what i just deliberately typed behind my back. Bugger off TC! Just leave my toolbar button definitions alone, will you?
