close Warning: Can't synchronize with repository "(default)" (/var/svn/tolp does not appear to be a Subversion repository.). Look in the Trac log for more information.

Opened 21 years ago

Closed 21 years ago

#99 closed defect (invalid)

Functions with variable number of arguments: WinRmtSystem

Reported by: Javier Portugal Owned by: manuelb
Priority: normal Milestone:
Component: Kernel Version: head
Severity: normal Keywords:
Cc:

Description

Function WinRmtSystem (and perhaps any other TOL function with variable number
of arguments) works wrong when any function parameter includes a comma.

For example, when evaluating this code:

Real WinRmtSystem("KLEIN",7001,"tol.exe -c\"Serie CalInd(W,Diario);\"");

WRCMD server recibes tol.exe -c"Serie CalInd(W as commad, when it should be
entire sentence tol.exe -c"Serie CalInd(W,Diario);"

Giving the last arguemnt mode doesn't solve the problem

Real WinRmtSystem("KLEIN",7001,"tol.exe -c\"Serie CalInd(W,Diario);\"","min");

If we use ";" instead of "," for separator of tol command, it works correctly:

Real WinRmtSystem("KLEIN",7001,"tol.exe -c\"Serie CalInd(W;Diario);\"");

But it should work with commas, shouldn't it?

Change History (4)

comment:1 Changed 21 years ago by rcsoto

Summary: Functions with variable number of arguments: WinRmtSystem Functions with variable number of arguments: WinRmtSystem

Server WRCMD this prepared to support like separator of command any character.
This option is not visible to the user.
But it is possible to be offer to the configuration from the server, but equal the
best thing is than it is a parameter.

comment:2 Changed 21 years ago by manuelb

Owner: changed from danirus to manuelb

comment:3 Changed 21 years ago by manuelb

Status: newassigned

comment:4 Changed 21 years ago by manuelb

Resolution: invalid
Status: assignedclosed

I'm afraid this is not a TOL problem, Javi.

I typed the command from a CMD box, and it has the same result, sending the
incomplete command arguments line:

-c"Serie CalInd(W

By the way: I really can't understand what you said, Roberto. I think you mean that
WRCMD is capable of using any separator character instead of a comma, but it is
not possible to change it from the command line, and that it can be re-coded to
offer that possibility. Am I wrong? I think it would be best giving the possibility of
quotation in order to issolate any number of any characters in all arguments.

Note: See TracTickets for help on using tickets.