Bug #584
server <sysopt>, <appopt> and cpmsrv client cmdline string argument quote issues
Status: | Closed | Start date: | 08/26/2020 | |
---|---|---|---|---|
Priority: | Normal (Code 4) | Due date: | ||
Assignee: | - | % Done: | 100% | |
Category: | - | |||
Target version: | - |
Description
Currently for example
if for [tpbridge -g "HELLO WORLD" -i 0.0.0.0] is defined, the ndrxd would start the process with following arguments:
1. -g
2. "HELLO
3. WORLD"
4. -i
5. 0.0.0.0
Correct version would be:
1. -g
2. "HELLO WORLD"
3. -i
4. 0.0.0.0
Thus in some cases space or tab seperated data cannot be passed in command line to processes. Needs to implement shell like escaping:
For example "HELLO 'WORLD'" shall become:
- HELLO 'WORLD'
For example "HELLO \"WORLD'" shall become:
- HELLO "WORLD'
For example "HELLO \\"WORLD'" shall become:
- HELLO \
- WORLD'
and so on.
History
#1 Updated by Madars about 3 years ago
- Status changed from New to Resolved
- % Done changed from 0 to 100
7.5+
#2 Updated by Madars about 3 years ago
- Status changed from Resolved to Closed